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

cmd: add export-db as a flux account command #486

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

cmoussa1
Copy link
Member

Problem

The export-db command is located in a separate file in the src/cmd/ directory and thus requires a different method of calling it than the other flux-accounting commands, i.e you need to write flux account-export-db instead of flux account export-db.


This PR moves this file to the directory containing the other Python bindings for flux-accounting and adds it as a regular command like the other bindings so that you can just call it like flux account export-db.

It removes the methods and --path command line argument that deal with establishing a connection to the flux-accounting DB since the systemd service will handle establishing that connection.

Finally, it adjusts the calls in t1016-export-db.t and top-level README for export-db to account for the change.

Problem: The "export-db" command is located in a separate file in the
src/cmd/ directory and thus requires a different method of calling it
than the other flux-accounting commands, i.e you need to write "flux
account-export-db" instead of "flux account export-db".

Move this file to the directory containing the other Python bindings for
flux-accounting and add it as a regular command like the other bindings
so that you can just call it like "flux account export-db".

Remove the methods and command line argument that deal with establishing
a connection to the flux-accounting DB since the systemd service will
handle establishing that connection.

Adjust the calls in the sharness test and top-level README for export-db
to account for the change.
@cmoussa1 cmoussa1 added the improvement Upgrades to an already existing feature label Aug 27, 2024
@cmoussa1 cmoussa1 requested a review from jameshcorbett August 28, 2024 15:50
Copy link
Member

@jameshcorbett jameshcorbett left a comment

Choose a reason for hiding this comment

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

Looks reasonable!

@cmoussa1
Copy link
Member Author

Thanks! Setting MWP here

@mergify mergify bot merged commit 25be085 into flux-framework:master Aug 28, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Upgrades to an already existing feature merge-when-passing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants