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

Developer Tools: create indexer data dir #991

Merged
merged 2 commits into from
May 9, 2022
Merged

Developer Tools: create indexer data dir #991

merged 2 commits into from
May 9, 2022

Conversation

shiqizng
Copy link
Contributor

@shiqizng shiqizng commented May 4, 2022

Summary

Create a data directory for indexer

Test Plan

run cmd manually to validate directory is created only if it doesn't exist already.

@shiqizng shiqizng self-assigned this May 4, 2022
@codecov-commenter
Copy link

codecov-commenter commented May 4, 2022

Codecov Report

Merging #991 (321b18d) into develop (bbc1d3e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #991   +/-   ##
========================================
  Coverage    60.17%   60.17%           
========================================
  Files           41       41           
  Lines         5700     5700           
========================================
  Hits          3430     3430           
  Misses        1824     1824           
  Partials       446      446           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbc1d3e...321b18d. Read the comment docs.

@@ -185,6 +197,8 @@ func init() {
daemonCmd.Flags().Uint32VarP(&maxApplicationsLimit, "max-applications-limit", "", 1000, "set the maximum allowed Limit parameter for querying applications")
daemonCmd.Flags().Uint32VarP(&defaultApplicationsLimit, "default-applications-limit", "", 100, "set the default Limit parameter for querying applications, if none is provided")

daemonCmd.Flags().StringVarP(&indexerDataDir, "datadir", "i", "", "path to indexer data dir, or $INDEXER_DATA")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: kebab case used for other parameters

Suggested change
daemonCmd.Flags().StringVarP(&indexerDataDir, "datadir", "i", "", "path to indexer data dir, or $INDEXER_DATA")
daemonCmd.Flags().StringVarP(&indexerDataDir, "data-dir", "i", "", "path to indexer data dir, or $INDEXER_DATA")

Copy link
Contributor

@winder winder left a comment

Choose a reason for hiding this comment

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

One nit otherwise LGTM. We'll need to update the README at some point, but maybe that can wait until the data dir is used for something.

@shiqizng shiqizng requested a review from winder May 9, 2022 16:45
@winder winder merged commit 58e68aa into develop May 9, 2022
@winder winder deleted the shiqi/datadir branch May 9, 2022 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants