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

fix: Resolve Revocation Notification environment variable name collision #1751

Merged
merged 5 commits into from
May 3, 2022

Conversation

TheTechmage
Copy link
Member

--monitor-revocation-notification and --notify-revocation have a
name conflict with their corresponding environment variables. Now they
don't have a conflict.

Signed-off-by: Colton Wolkins (Indicio work address) colton@indicio.tech

`--monitor-revocation-notification` and `--notify-revocation` have a
name conflict with their corresponding environment variables. Now they
don't have a conflict.

Signed-off-by: Colton Wolkins (Indicio work address) <colton@indicio.tech>
@codecov-commenter
Copy link

codecov-commenter commented Apr 28, 2022

Codecov Report

Merging #1751 (4c764fb) into main (ffd2fe2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1751   +/-   ##
=======================================
  Coverage   95.23%   95.23%           
=======================================
  Files         528      528           
  Lines       33141    33141           
=======================================
  Hits        31563    31563           
  Misses       1578     1578           

@swcurran swcurran added the 0.7.4 label May 3, 2022
@@ -680,7 +680,7 @@ def add_arguments(self, parser: ArgumentParser):
parser.add_argument(
"--monitor-revocation-notification",
action="store_true",
env_var="ACAPY_NOTIFY_REVOCATION",
env_var="ACAPY_MONITOR_REVOCATION_NOTIF",
Copy link
Member

Choose a reason for hiding this comment

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

Nit, but I like it when the env variable follows the argument (so I could guess what the env name is from the arg name)

Suggested change
env_var="ACAPY_MONITOR_REVOCATION_NOTIF",
env_var="ACAPY_MONITOR_REVOCATION_NOTIFICATION",

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair enough on you're point, let's make that change

TimoGlastra
TimoGlastra previously approved these changes May 3, 2022
dbluhm
dbluhm previously approved these changes May 3, 2022
@@ -680,7 +680,7 @@ def add_arguments(self, parser: ArgumentParser):
parser.add_argument(
"--monitor-revocation-notification",
action="store_true",
env_var="ACAPY_NOTIFY_REVOCATION",
env_var="ACAPY_MONITOR_REVOCATION_NOTIF",
Copy link
Member

Choose a reason for hiding this comment

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

The abbreviation feels slightly out of place but it's also one of the longest monitoring subjects so I'm not feeling particularly nit-picky on that point

Copy link
Member Author

Choose a reason for hiding this comment

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

That's the main reason why I shortened it, because it's such a long environment variable

Copy link
Member

Choose a reason for hiding this comment

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

Signed-off-by: Colton Wolkins (Indicio work address) <colton@indicio.tech>
…cation-env-var-names

Signed-off-by: Colton Wolkins (Indicio work address) <colton@indicio.tech>
@TheTechmage TheTechmage dismissed stale reviews from dbluhm and TimoGlastra via 4c764fb May 3, 2022 16:13
@ianco ianco enabled auto-merge May 3, 2022 18:26
@ianco ianco merged commit ff68284 into hyperledger:main May 3, 2022
@TheTechmage TheTechmage deleted the fix/revocation-env-var-names branch May 3, 2022 20:46
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.

None yet

6 participants