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

Update issue manager with "feedback requested" behavior #361

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

mfisher87
Copy link
Collaborator

We weren't using an "answered" label, so I just replaced it.

Triggers updated per documentation!

We weren't using an "answered" label, so I just replaced it.

Triggers updated per documentation!
@mfisher87 mfisher87 requested a review from betolink November 22, 2023 19:04
Copy link

github-actions bot commented Nov 22, 2023

Binder 👈 Launch a binder notebook on this branch for commit eeed2f2

I will automatically update this comment whenever this PR is modified

Binder 👈 Launch a binder notebook on this branch for commit 5b8a818

@mfisher87
Copy link
Collaborator Author

I specifically want to use this functionality for #356

@mfisher87 mfisher87 requested a review from jhkennedy November 22, 2023 19:06

jobs:
issue-manager:
runs-on: ubuntu-latest
runs-on: "ubuntu-latest"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I feel strongly that quoting YAML strings is important. There's too many weird things that can happen if you don't. Just like bash :) Is there a pre-commit validator that can check for this? :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

GitHub's own documentation doesn't quote simple YAML strings, except for ${{}} contexts, e.g.,
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on

Other than a few special cases (number-y strings and special characters) I've not had any issues with unquoted strings in YAML. So, I feel it's entirely unnecessary and would prefer to match GitHub's documentation examples as much as possible.

Copy link
Collaborator Author

@mfisher87 mfisher87 Nov 23, 2023

Choose a reason for hiding this comment

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

I don't think this is something with an objectively correct answer, but I also don't really consider GitHub an authority on YAML quality, so I'm not terribly swayed in my opinion by that :) One of the strange thing YAML does is convert the value no (the word "no" or the country code for Norway) to False. String rules in YAML are very complicated. I think "explicit is better than implicit", and "simple is better than complex" are my guiding principles in this preference.

If you feel strongly against adding the quotes, I don't think we're going to resolve that in the context of this PR :) I'm happy to restore this to a mix of quoted and unquoted stings as it was before (because I don't think we should enforce any standard when we don't have consensus) so we can get this merged!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Following up on the earlier thought about validation, there is a yamllint rule that can enforce always-quoted strings (single or double), never enforce quotes, or permit quotes only when needed (for all the special cases like no, yes, true, false, #, [], {}, \d.*... probably more I'm not aware of). If/when we have consensus on this issue, I think it'd be great to record that decision as a linting rule.

https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.quoted_strings

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think my preference is strong enough to warrant a standoff 🤣

I've just rarely hit this issue in practice, and almost always with trailing zeros on number-y things. So I see a molehill here, but if you've climbed a mountain and planted a flag, that's cool with me -- we'll go with that.

I do like the idea of making a decision and letting the linter-bot be the sheriff, though!

Copy link
Collaborator Author

@mfisher87 mfisher87 Nov 23, 2023

Choose a reason for hiding this comment

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

I do like the idea of making a decision and letting the linter-bot be the sheriff, though!

Yes! Having software solve these problems is much better than dealing with competing preferences. There are lots of usually-not-a-big-deal things people can have strong opinions about, and for me quoting strings in YAML and Bash is one of them. I've been bitten too many times, and "just quote strings" keeps my cognitive load low :) But I don't want things that help me to cause harm to anyone else, so... yeah, let's make this a discussion about linters/formatters :) Opened #364

@mfisher87 mfisher87 mentioned this pull request Nov 23, 2023
jhkennedy
jhkennedy previously approved these changes Nov 23, 2023
@mfisher87 mfisher87 merged commit 69f9e46 into nsidc:main Nov 23, 2023
5 checks passed
@mfisher87 mfisher87 deleted the issue-manager-feedback-requested branch November 23, 2023 03:48
@mfisher87
Copy link
Collaborator Author

Looks to be working:

INFO:root:Not clossing issue: #356 as the delay hasn't been reached: 10 days, 0:00:00
INFO:root:Finished

https://github.com/nsidc/earthaccess/actions/runs/6965375261/job/18953956336

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.

2 participants