Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support rename dataset version #2935

Merged
merged 13 commits into from
Nov 21, 2024
Merged

Support rename dataset version #2935

merged 13 commits into from
Nov 21, 2024

Conversation

SophieGuo410
Copy link
Contributor

No description provided.

@SophieGuo410 SophieGuo410 marked this pull request as ready for review November 7, 2024 18:32
@SophieGuo410 SophieGuo410 reopened this Nov 14, 2024
@SophieGuo410 SophieGuo410 force-pushed the Branch_rename branch 3 times, most recently from 2f0bfe9 to f2f89ce Compare November 16, 2024 00:24
@SophieGuo410 SophieGuo410 changed the title Support rename dataset version in MySqlAccountStore [WIP]Support rename dataset version in MySqlAccountStore Nov 16, 2024
@SophieGuo410 SophieGuo410 changed the title [WIP]Support rename dataset version in MySqlAccountStore Support rename dataset version in MySqlAccountStore Nov 18, 2024
@SophieGuo410 SophieGuo410 force-pushed the Branch_rename branch 2 times, most recently from 26e0346 to 7f4fce5 Compare November 18, 2024 19:11
@SophieGuo410 SophieGuo410 changed the title Support rename dataset version in MySqlAccountStore Support rename dataset version Nov 18, 2024
Comment on lines 355 to 359
if (datasetVersionRecord.getRenameFrom() != null) {
return datasetVersionRecord.getRenamedPath(accountName, containerName);
} else {
return datasetVersionRecord.getOriginalPath(accountName, containerName);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be put in one method in DatasetVersionRecord. Let's add this to dataset version recoard

public String getNamedBlobNamePath(String acountName, String containerName) {
    if (this.renamedPath != null) {
        return getRenamedPath(accountName, containerName);
    } else {
        return getOriginalPath(accountName, containerName);
    }
}

In this way, the reconstructRequestPath doesn't need this branches again.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, updated.

@SophieGuo410 SophieGuo410 merged commit 316d148 into master Nov 21, 2024
5 checks passed
aga9900 pushed a commit that referenced this pull request Nov 21, 2024
* Support rename dataset version in AccountService

* Update to use the colum map to original value

* Adding more test and details

* Adding handler logic

* Address comments

* Empty commit to try and rerun unit test

* Empty commit to try and rerun unit test

* Address comments

* Code refactoring

* Fix bug for delete

* address comments

* code refactor

* Addressed comments

---------

Co-authored-by: Sophie Guo <sopguo@sopguo-mn2.linkedin.biz>
aga9900 pushed a commit that referenced this pull request Nov 21, 2024
* Support rename dataset version in AccountService

* Update to use the colum map to original value

* Adding more test and details

* Adding handler logic

* Address comments

* Empty commit to try and rerun unit test

* Empty commit to try and rerun unit test

* Address comments

* Code refactoring

* Fix bug for delete

* address comments

* code refactor

* Addressed comments

---------

Co-authored-by: Sophie Guo <sopguo@sopguo-mn2.linkedin.biz>
aga9900 added a commit that referenced this pull request Nov 22, 2024
* More Changes For LLD

* [S3 API] Support for S3 AbortMultipartUpload API (#2940)

* Support AbortMultipartUpload for S3 API

---------

Co-authored-by: Shan Xu <shaxu@linkedin.com>

* Support rename dataset version (#2935)

* Support rename dataset version in AccountService

* Update to use the colum map to original value

* Adding more test and details

* Adding handler logic

* Address comments

* Empty commit to try and rerun unit test

* Empty commit to try and rerun unit test

* Address comments

* Code refactoring

* Fix bug for delete

* address comments

* code refactor

* Addressed comments

---------

Co-authored-by: Sophie Guo <sopguo@sopguo-mn2.linkedin.biz>

* add local store to logs (#2947)

Co-authored-by: Navneet Sachan <nsachan@nsachan-mn1.linkedin.biz>

* Updating LLD Flow For bootstrap

* Updating FileStore Class

* updating commit

---------

Co-authored-by: Shan Xu <alyssaxu333@gmail.com>
Co-authored-by: Shan Xu <shaxu@linkedin.com>
Co-authored-by: sopguo <sopguo@linkedin.com>
Co-authored-by: Sophie Guo <sopguo@sopguo-mn2.linkedin.biz>
Co-authored-by: Navneet Sachan <nsachan@linkedin.com>
Co-authored-by: Navneet Sachan <nsachan@nsachan-mn1.linkedin.biz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants