Skip to content

Commit

Permalink
Support adding revision for dataset version auto incr
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Guo committed Nov 22, 2024
1 parent d33bb81 commit 2176aa6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ static RestRequestMetricsGroup getMetricsGroupForGet(FrontendMetrics frontendMet
*/
static void replaceRequestPathWithNewOperationOrBlobIdIfNeeded(RestRequest restRequest,
DatasetVersionRecord datasetVersionRecord, String version) throws RestServiceException {
if (version.equals("LATEST") || version.equals("MAJOR") || version.equals("MINOR") || version.equals("PATCH")) {
if (version.equals("LATEST") || version.equals("MAJOR") || version.equals("MINOR") || version.equals("PATCH")
|| version.equals("REVISION")) {
RequestPath originalRequestPath = (RequestPath) restRequest.getArgs().get(REQUEST_PATH);
String originalOperationOrBlobId = originalRequestPath.getOperationOrBlobId(false);
int index = originalOperationOrBlobId.lastIndexOf(PATH_SEPARATOR_STRING);
Expand Down

0 comments on commit 2176aa6

Please sign in to comment.