Skip to content

1641 - config can override presets #1775

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

Merged
merged 2 commits into from
Jul 23, 2024
Merged

1641 - config can override presets #1775

merged 2 commits into from
Jul 23, 2024

Conversation

Cmdv
Copy link
Contributor

@Cmdv Cmdv commented Jul 16, 2024

Description

This fixes #1641

Checklist

  • Commit sequence broadly makes sense
  • Commits have useful messages
  • New tests are added if needed and existing tests are updated
  • Any changes are noted in the changelog
  • Code is formatted with fourmolu on version 0.10.1.0 (which can be run with scripts/fourmolize.sh)
  • Self-reviewed the diff

Migrations

  • The pr causes a breaking change of type a,b or c
  • If there is a breaking change, the pr includes a database migration and/or a fix process for old values, so that upgrade is possible
  • Resyncing and running the migrations provided will result in the same database semantically

If there is a breaking change, especially a big one, please add a justification here. Please elaborate
more what the migration achieves, what it cannot achieve or why a migration is not possible.

@Cmdv Cmdv requested a review from a team as a code owner July 16, 2024 11:52
@Cmdv Cmdv force-pushed the 1641-config-overide-presets branch 3 times, most recently from 9857461 to 6e365ef Compare July 16, 2024 13:14
case insertOpts of
FullInsertOptions ->
case insertCfg of
SyncInsertConfig (Just "full") _ ->
Copy link
Contributor

@sgillespie sgillespie Jul 19, 2024

Choose a reason for hiding this comment

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

These would be nicer to use as ADTs (rather than strings), as I mentioned in my other comment. It would also make the wildcard clause unnecessary

Copy link
Contributor

@sgillespie sgillespie left a comment

Choose a reason for hiding this comment

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

Good job! I had a few concerns on the new type and the property tests. Feel free to discuss if you don't agree

@Cmdv Cmdv force-pushed the 1641-config-overide-presets branch 2 times, most recently from 4917bbe to 10e3375 Compare July 22, 2024 10:14
@Cmdv Cmdv force-pushed the 1641-config-overide-presets branch from 10e3375 to e833345 Compare July 22, 2024 12:40
@Cmdv Cmdv merged commit 572095c into master Jul 23, 2024
16 of 25 checks passed
@kderme kderme deleted the 1641-config-overide-presets branch March 21, 2025 00:52
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.

Config: Preset ALWAYS overrides Ledger
2 participants