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/configure scheduled created by migration #6821

Merged
merged 7 commits into from
Apr 10, 2024

Conversation

daveleek
Copy link
Contributor

@daveleek daveleek commented Apr 10, 2024

About the changes

  • Removes the feature flag for the created_by migrations.
  • Adds a configuration option in IServerOption for ENABLE_SCHEDULED_CREATED_BY_MIGRATION that defaults to false
  • the new configuration option when set on startup enables scheduling of the two created_by migration services (features+events)
  • Removes the dependency on flag provider in EventStore as it's no longer needed
  • Adds a brief description of the new configuration option in configuring-unleash.md
  • Sets the events created_by migration interval to 15 minutes, up from 2.

Copy link

vercel bot commented Apr 10, 2024

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

Name Status Preview Comments Updated (UTC)
unleash-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 10, 2024 0:05am
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 10, 2024 0:05am

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Declining Code Health: 1 findings(s) 🚩

View detailed results in CodeScene

@@ -13,6 +13,7 @@ import type { IUnleashServices } from '../../server-impl';
*/
export const scheduleServices = async (
services: IUnleashServices,
config: IUnleashConfig,

Choose a reason for hiding this comment

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

❌ Getting worse: Large Method
scheduleServices increases from 137 to 140 lines of code, threshold = 70

Suppress

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

Code looks good, docs need some love, but we can also do another iteration

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Declining Code Health: 1 findings(s) 🚩

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Declining Code Health: 1 findings(s) 🚩

View detailed results in CodeScene

@daveleek daveleek merged commit 02b3805 into main Apr 10, 2024
15 checks passed
@daveleek daveleek deleted the feat/configure-scheduled-created-by-migration branch April 10, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants