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: fetching team_settings data from database and populating forms #3319

Closed
wants to merge 8 commits into from

Conversation

RODO94
Copy link
Contributor

@RODO94 RODO94 commented Jun 25, 2024

What does this PR do?

Continuing work on the team_settings implementation, this PR pulls in data from the database with a graphQL query and populates the corresponding form inputs.

This PR also uses the update mutation, similar to team_themes to update the form fields and database.

This PR aligns with a planx-core change where the requests and types for a Team were altered to incorporate the new team_settings table.

Reference to the planx-core changes

Important to note that this PR has not deleted any functions, methods, or types related to previous versions of notifyPersonalisation or the original settings column of "teams" table. Thinking is to do this clear out after changes have been made and tested using the new team_settings table

@RODO94 RODO94 changed the title feat: fetching team_settings data from database and populating forms feat(wip): fetching team_settings data from database and populating forms Jun 26, 2024
@RODO94 RODO94 force-pushed the rory/team-settings-data-fetch branch from 5a52e40 to 0f171d6 Compare June 26, 2024 10:28
@RODO94 RODO94 marked this pull request as ready for review June 26, 2024 10:36
@RODO94 RODO94 requested a review from a team June 26, 2024 10:38
Copy link

github-actions bot commented Jun 26, 2024

Pizza

Deployed 74b1098 to https://3319.planx.pizza.

Useful links:

@RODO94 RODO94 changed the title feat(wip): fetching team_settings data from database and populating forms feat: fetching team_settings data from database and populating forms Jun 26, 2024
@RODO94 RODO94 marked this pull request as draft June 26, 2024 13:22
@RODO94 RODO94 force-pushed the rory/team-settings-data-fetch branch from 779b520 to f298693 Compare June 28, 2024 13:47
@RODO94 RODO94 force-pushed the rory/team-settings-data-fetch branch from f298693 to f1c70fc Compare July 3, 2024 08:16
Copy link
Contributor

Choose a reason for hiding this comment

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

The changes in this file (removed commas) don't match our linting style. Husky should be picking this up and fixing it as part of a pre-commit hook but this clearly isn't working right atm for your setup it seems. We can also look at checking this at the CI stage if we need to.

You can fix this file with pnpm lint:fix

@RODO94
Copy link
Contributor Author

RODO94 commented Jul 3, 2024

PR Closed as overlapping changes became too tangled, changes have been moved to fresh branch:

#3366

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