You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: refactor the pagination prefix and token processing (#1476)
Encapsulate pageTokenPrefix and paginationToken within a unified
PageToken class or utility functions to simplify and generalize
pagination logic.
Issue : The logic to validate and extract the pageToken from the request
is not standardized and has repetition for every case which makes it
error prone.
The change was already done for exporting release.
This change adds generic methods to the StringPaginationToken class and
refactors the export playlist method.
Copy file name to clipboardExpand all lines: extensions/data-transfer/portability-data-transfer-google/src/main/java/org/datatransferproject/datatransfer/google/music/GoogleMusicExporter.java
+8-49Lines changed: 8 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -132,42 +132,25 @@ public ExportResult<MusicContainerResource> export(
132
132
}
133
133
}
134
134
135
-
// TODO(@jzacsh): Replace pageTokenPrefix and paginationToken with simplified and general class or
0 commit comments