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

chore: remove UpsertCustomRole in favor of Insert + Update#14217

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
Emyrk merged 12 commits intomainfromstevenmasley/custom_role_remove_upsert
Aug 13, 2024

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedAug 8, 2024
edited
Loading

Upsert was causing some ui issues, it is better to make these an explicit create or an update.

This was request by@jaaydenh to make the UI experience more fluid. Essentially you do not want to mistakenly create a role. A create and update should be explicit.

@alwaysmeticulousalwaysmeticulous
Copy link

alwaysmeticulousbot commentedAug 8, 2024
edited
Loading

🤖 Meticulous spotted visual differences in 35 of 1355 screens tested:view and approve differences detected.

Last updated for commit2d81996. This comment will update as new commits are pushed.

@EmyrkEmyrk marked this pull request as ready for reviewAugust 8, 2024 18:29
@EmyrkEmyrk requested a review fromf0sselAugust 8, 2024 18:31
@EmyrkEmyrkforce-pushed thestevenmasley/custom_role_remove_upsert branch from28f3603 to14da05aCompareAugust 9, 2024 11:27
@Emyrk
Copy link
MemberAuthor

@jaaydenh mentioned he needs to make a UI PR to migrate the UI to move away from upsert

Comment on lines +220 to +225
switch createNewRole {
case true:
updated, err = client.CreateOrganizationRole(ctx, customRole)
default:
updated, err = client.UpdateOrganizationRole(ctx, customRole)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This feels like a smell to me, my gut would say that we should just have a separatecreate cli command. If the UI needs to make the distinction, sounds like we should do the same for the CLI.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

You are right@f0ssel. This PR is already quite big, and we are not launching this yet. Can I create an issue to split these out into 2 commands and do it in another PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

Totally 👍

Emyrk reacted with thumbs up emoji
@EmyrkEmyrkforce-pushed thestevenmasley/custom_role_remove_upsert branch from05f1814 to2d81996CompareAugust 13, 2024 17:12
@EmyrkEmyrk merged commit84fdfd2 intomainAug 13, 2024
33 checks passed
@EmyrkEmyrk deleted the stevenmasley/custom_role_remove_upsert branchAugust 13, 2024 17:53
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 13, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@f0sself0sself0ssel approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@Emyrk@f0ssel@jaaydenh

[8]ページ先頭

©2009-2025 Movatter.jp