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

Refactor: import-targets to import-artifacts #421

Conversation

kairoaraujo
Copy link
Member

Description

  • Updates the user commands to show as import-artifacts instead import-targets following the changes in the API and documentation.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)

Additional requirements

  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

Code of Conduct

By submitting this PR, you agree to follow our Code of Conduct.

  • I agree to follow this project's Code of Conduct

@kairoaraujo kairoaraujo force-pushed the import-target_to_import-artifacts branch 2 times, most recently from 4a9a1c8 to 4cf72c5 Compare October 13, 2023 10:15
@kairoaraujo kairoaraujo requested a review from MVrachev October 13, 2023 10:15
- Updates the user commands to show as `import-artifacts` instead
  `import-targets` following the changes in the API and documentation.

Signed-off-by: Kairo de Araujo <[email protected]>
@kairoaraujo kairoaraujo force-pushed the import-target_to_import-artifacts branch from 4cf72c5 to 4d92647 Compare October 13, 2023 10:18
@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (980495a) 98.64% compared to head (9de390f) 98.64%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #421   +/-   ##
=======================================
  Coverage   98.64%   98.64%           
=======================================
  Files          16       16           
  Lines        1181     1181           
=======================================
  Hits         1165     1165           
  Misses         16       16           
Files Coverage Δ
repository_service_tuf/cli/admin/ceremony.py 99.53% <ø> (ø)
...pository_service_tuf/cli/admin/import_artifacts.py 100.00% <100.00%> (ø)
repository_service_tuf/helpers/api_client.py 100.00% <100.00%> (ø)

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

Copy link
Member

@MVrachev MVrachev left a comment

Choose a reason for hiding this comment

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

@@ -711,13 +712,14 @@ sign (``sign``)


.. rstuf-cli-admin-import-targets
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.. rstuf-cli-admin-import-targets

Copy link
Member Author

Choose a reason for hiding this comment

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

It is to not break the docs in the umbrella until we update the sphinx import links.

╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ ceremony Start a new Metadata Ceremony. │
│ import-artifacts Import artifacts to RSTUF from exported CSV file.│
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
│ import-artifacts Import artifacts to RSTUF from exported CSV file.│
│ import-artifacts Import artifacts to RSTUF from exported CSV file.

Copy link
Member

Choose a reason for hiding this comment

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

If you do that you need to add a space to the other rows as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we can keep it. It is just an example to the user in the docs., unless there are other changes to do.

@kairoaraujo
Copy link
Member Author

Copy link
Member

@MVrachev MVrachev left a comment

Choose a reason for hiding this comment

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

LGTM!

Added an issue for the rest of my comments: #422

@MVrachev MVrachev merged commit a5c325a into repository-service-tuf:main Oct 13, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants