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

Clean up User association definitions #75

Closed
wants to merge 1 commit into from

Conversation

Nitemaeric
Copy link
Contributor

@Nitemaeric Nitemaeric commented Jan 3, 2024

Context

The associations were difficult to visually parse.

Changes proposed in this pull request

As inlining these does not go against our RuboCop lint rules, bring the definitions inline.

Guidance to review

Does it read nicer? 😄

Link to Trello card

Things to check

  • If the code removes any existing feature flags, a data migration has also been added to delete the entry from the database
  • This code does not rely on migrations in the same Pull Request
  • If this code includes a migration adding or changing columns, it also backfills existing records for consistency
  • If this code adds a column to the DB, decide whether it needs to be in analytics yml file or analytics blocklist
  • API release notes have been updated if necessary
  • If it adds a significant user-facing change, is it documented in the CHANGELOG?
  • Required environment variables have been updated or added to the Azure KeyVault

Screenshots

CleanShot 2024-01-03 at 17 05 26@2x

Copy link
Contributor

@elceebee elceebee left a comment

Choose a reason for hiding this comment

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

I find the first way easier to read personally. The extra space on line 21 between schools, and through is especially jarring for me to read. :)

In general, I don't think we should reformat code like this. I could change it tomorrow because I think it reads easier over multiple lines and we could end up in an infinite loop of reformatting.

@Nitemaeric Nitemaeric closed this Jan 4, 2024
@Nitemaeric Nitemaeric deleted the dd/clean-up-user-association-definitions branch January 4, 2024 15:34
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