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 action to work with new version of the CLI + add more tests #5

Merged
merged 6 commits into from
Nov 29, 2023

Conversation

zaporter-work
Copy link
Member

@zaporter-work zaporter-work commented Nov 29, 2023

See test run here: #4

@zaporter-work zaporter-work changed the title Fix action to work with new version of the CLI + add tests Fix action to work with new version of the CLI + add more tests Nov 29, 2023
Comment on lines +8 to +15
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: deps
run: pip install ruff
- uses: actions/checkout@v3
- name: lint
run: ruff upload.py
Copy link
Member Author

Choose a reason for hiding this comment

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

My formatter (prettier) did this formatting.

If you want to keep it in the old style, I can revert this

Copy link
Member

Choose a reason for hiding this comment

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

no preference

if the computer is happy I'm happy

Comment on lines +37 to +39
elif args.name:
meta_args = ('--name', args.name)

Copy link
Member Author

Choose a reason for hiding this comment

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

This didn't seem to be populated before

Copy link
Member

Choose a reason for hiding this comment

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

I didn't test the no-meta case; makes sense

Copy link
Member

Choose a reason for hiding this comment

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

for clarity -- you're intentionally removing the org-id arg from the update command?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, the org-id and namespace arguments don't make much sense for the update command because the update command requires a meta.json (which includes the module_id (which includes namespace and orgid)).

Back when name existed, it kind of vaguely made sense, but it really was just complication because it is possible to write it that way, not because it was actually good behavior.

test/meta.json Outdated Show resolved Hide resolved
Comment on lines +8 to +15
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: deps
run: pip install ruff
- uses: actions/checkout@v3
- name: lint
run: ruff upload.py
Copy link
Member

Choose a reason for hiding this comment

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

no preference

if the computer is happy I'm happy

Comment on lines +37 to +39
elif args.name:
meta_args = ('--name', args.name)

Copy link
Member

Choose a reason for hiding this comment

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

I didn't test the no-meta case; makes sense

Comment on lines +37 to +39
elif args.name:
meta_args = ('--name', args.name)

Copy link
Member

Choose a reason for hiding this comment

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

for clarity -- you're intentionally removing the org-id arg from the update command?

@zaporter-work zaporter-work merged commit bbadcf6 into main Nov 29, 2023
3 checks passed
@zaporter-work zaporter-work deleted the zp/update-params-updated branch November 29, 2023 16:57
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