Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: fix template edit overriding with flag defaults#11564

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sreya merged 3 commits intomainfromjon/fixtemplateedit
Jan 11, 2024

Conversation

sreya
Copy link
Collaborator

@sreyasreya commentedJan 11, 2024
edited
Loading

This PR fixes a couple of bugs:

  • Fixes various flags default overriding template values even when not specified as part of the command
  • Fixes an issue where attempting to disabling theeveryone group on a template wiped the groups permission ACL
  • Fixes a testing issue where seeding a template didn't set a proper object foruser_acl

I know we recently refactoredtemplates edit to have parity withtemplates create but I don't think we should be supporting the--private flag since that's really only intended for initial template creation. We should probably move it totemplates push and indicate in the description that the flag is only intended when used in conjunction with--create. I'll fix thathere

fixes#11563

@aaronlehmann
Copy link
Contributor

Thanks for fixing this. I ran into it a few days ago.

sreya reacted with heart emoji

@sreyasreya requested a review fromEmyrkJanuary 11, 2024 01:24
Copy link
Member

@EmyrkEmyrk left a comment

Choose a reason for hiding this comment

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

👍

It would be nice to find a more shorthand syntax to handle this category of bug, but for now this is a good fix 👍

@sreya
Copy link
CollaboratorAuthor

Yeah the test for it is inherently brittle, but it'll help for now.

@sreyasreya merged commitaecdafd intomainJan 11, 2024
@sreyasreya deleted the jon/fixtemplateedit branchJanuary 11, 2024 22:18
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 11, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@EmyrkEmyrkEmyrk approved these changes

Assignees

@sreyasreya

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

bug: 'templates edit' updates unspecified fields with flag defaults
3 participants
@sreya@aaronlehmann@Emyrk

[8]ページ先頭

©2009-2025 Movatter.jp