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

feat: Flag group owners #3112

Merged
merged 3 commits into from
Dec 7, 2023
Merged

feat: Flag group owners #3112

merged 3 commits into from
Dec 7, 2023

Conversation

kyle-ssg
Copy link
Member

@kyle-ssg kyle-ssg commented Dec 7, 2023

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

image

How did you test this code?

  • Added and removed a flag group owner in production
  • Fixed broken response types
  • Added RTK approach to get individual flag

@kyle-ssg kyle-ssg requested review from a team and novakzaballa and removed request for a team December 7, 2023 14:58
Copy link

vercel bot commented Dec 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 7, 2023 4:49pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 7, 2023 4:49pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 7, 2023 4:49pm

@kyle-ssg kyle-ssg changed the title Flag group owners feat: Flag group owners Dec 7, 2023
Copy link
Contributor

github-actions bot commented Dec 7, 2023

Uffizzi Preview deployment-42362 was deleted.

Copy link
Contributor

@zachaysan zachaysan left a comment

Choose a reason for hiding this comment

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

One main point of feedback, but I'll leave it to your decision as to whether or not to keep the owners language, otherwise looks great.

Comment on lines 23 to 24
const owners = (res.data.group_owners || []).map((v) => v.id)
this.setState({ owners })
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we already have owners for normal users I think here and elsewhere the naming should be spelled out as group_owners since it may cause confusion with owners.

Copy link
Member Author

@kyle-ssg kyle-ssg Dec 7, 2023

Choose a reason for hiding this comment

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

Yep sure makes sense, done

frontend/web/components/FlagOwnerGroups.js Show resolved Hide resolved
Copy link

sentry-io bot commented Dec 15, 2023

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: undefined is not an object (evaluating 'e.data.group_owners') <anonymous>(web/components/FlagOwnerGroups) View Issue
  • ‼️ TypeError: undefined is not an object (evaluating 'e.data.owners') <anonymous>(web/components/FlagOwners) View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the ability to assign a feature to a user group
2 participants