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

Identical member names - PDS enhancement #2427

Merged
merged 23 commits into from
Feb 20, 2025
Merged

Conversation

pujal0909
Copy link
Contributor

@pujal0909 pujal0909 commented Feb 3, 2025

What It Does

When copying PDSs, if the source and target have identical member names, the default behavior now is to prompt the user to confirm before overwriting the members contents (when the safe-replace option is not set to true). If the user uses the replace flag, it bypasses the prompt.

How to Test

  1. Copy a source PDS into a target PDS, with both having members with the same names.
  2. Notice that a prompt appears where you can select 'y/N'
  3. Now copy the same source PDS into the same target PDS with the replace option.
  4. Notice that the prompt is skipped

Review Checklist
I certify that I have:

Additional Comments

Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.50%. Comparing base (eb5696b) to head (0775bf4).
Report is 25 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2427   +/-   ##
=======================================
  Coverage   91.49%   91.50%           
=======================================
  Files         641      641           
  Lines       18360    18376   +16     
  Branches     3869     3946   +77     
=======================================
+ Hits        16799    16815   +16     
  Misses       1559     1559           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
@pujal0909 pujal0909 marked this pull request as ready for review February 4, 2025 14:55
Copy link

github-actions bot commented Feb 4, 2025

📅 Suggested merge-by date: 2/18/2025

Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Copy link
Contributor

@anaxceron anaxceron left a comment

Choose a reason for hiding this comment

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

Left some comments, please review.

Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
@pujal0909 pujal0909 changed the title Like named PDS members enhancement Identical member names - PDS enhancement Feb 7, 2025
@pujal0909 pujal0909 requested a review from traeok February 7, 2025 16:25
Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

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

LGTM! 😋

I did leave some comments for possible improvements, but I do like the code as-is and works as expected 🙏

Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Copy link
Member

@traeok traeok left a comment

Choose a reason for hiding this comment

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

Changes LGTM, thanks @pujal0909 for enhancing the copy PDS command!

@pujal0909 pujal0909 requested a review from jace-roell February 12, 2025 01:03
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Copy link

Reminder: This pull request has a merge-by date coming up within the next 24 hours. Please review this PR as soon as possible.

@t1m0thyj @awharn @ATorrise @adam-wolfe @jace-roell

Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

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

Looks pretty good, thanks @pujal0909! Left a few comments

Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
@pujal0909 pujal0909 force-pushed the duplicate-pds-members branch from 133a470 to 349e3fe Compare February 19, 2025 14:35
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
@pujal0909 pujal0909 requested a review from t1m0thyj February 19, 2025 15:33
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
@pujal0909 pujal0909 force-pushed the duplicate-pds-members branch from 3991e23 to ee0a485 Compare February 19, 2025 17:15
Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @pujal0909!

awharn
awharn previously requested changes Feb 19, 2025
Copy link
Member

@awharn awharn left a comment

Choose a reason for hiding this comment

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

This PR looks good, but there is a duplicate import in the system test that needs to be addressed.

Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
@pujal0909 pujal0909 force-pushed the duplicate-pds-members branch from a6936bc to c87e957 Compare February 19, 2025 19:37
@zFernand0 zFernand0 dismissed awharn’s stale review February 19, 2025 20:07

changes addressed

@pujal0909 pujal0909 requested a review from awharn February 19, 2025 20:14
Signed-off-by: Pujal Gandhi <71276682+pujal0909@users.noreply.github.com>
Copy link
Member

@awharn awharn left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @pujal0909!

Signed-off-by: Pujal Gandhi <71276682+pujal0909@users.noreply.github.com>
@t1m0thyj t1m0thyj merged commit b91b989 into master Feb 20, 2025
23 checks passed
@t1m0thyj t1m0thyj deleted the duplicate-pds-members branch February 20, 2025 14:33
@t1m0thyj t1m0thyj added the release-current Indicates that there is no new functionality being delivered label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-current Indicates that there is no new functionality being delivered
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

6 participants