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

Add clarification to version update action for non-versioned buckets #147

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

jatindersingh93
Copy link
Contributor

@jatindersingh93 jatindersingh93 commented Nov 16, 2023

This change will display a confirmation pop up when a user tries to upload a non-version bucket file, notifying that action will replace the file and previous version will no longer be available.

Description

Types of changes

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Copy link

Coverage Report (Application)

Totals Coverage
Statements: 70.67% ( 53 / 75 )
Methods: 62.5% ( 5 / 8 )
Lines: 81.63% ( 40 / 49 )
Branches: 44.44% ( 8 / 18 )

Copy link

Coverage Report (Frontend)

Totals Coverage
Statements: 35.92% ( 625 / 1740 )
Methods: 34.46% ( 133 / 386 )
Lines: 43.21% ( 439 / 1016 )
Branches: 15.68% ( 53 / 338 )

@jatindersingh93 jatindersingh93 marked this pull request as ready for review November 17, 2023 00:02
frontend/src/components/object/ObjectUploadBasic.vue Outdated Show resolved Hide resolved
frontend/src/components/object/ObjectUploadBasic.vue Outdated Show resolved Hide resolved
@jatindersingh93 jatindersingh93 changed the title Adding method to find s3version of an object Add clarification to version update action for non-versioned buckets Nov 17, 2023
@@ -126,7 +126,9 @@ export const useVersionStore = defineStore('version', () => {
function findVersionsByObjectId(objectId: string) {
return state.versions.value.filter((x: Version) => x.objectId === objectId);
}

function findS3VersionByObjectId(objectId: string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is fine. but for future reference, findObjectById() already returns the s3VersionId.
so i think you can do formData.value.s3VersionId

and logic to provide confirm message
@jujaga jujaga merged commit 4d1f7eb into master Nov 17, 2023
18 checks passed
@jujaga jujaga deleted the SC3378 branch November 17, 2023 23:07
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.

3 participants