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

v6 plans #4380

Open
ivarconr opened this issue Aug 1, 2023 · 12 comments
Open

v6 plans #4380

ivarconr opened this issue Aug 1, 2023 · 12 comments

Comments

@ivarconr
Copy link
Member

ivarconr commented Aug 1, 2023

Decided:

  • Upgrade to Node v20
  • Dropping support for postgres v10, v11, and v12.
  • Remove the passport libs from the official Open Source Docker distribution. (We have a community image which adds these dependencies)
    • This is huge, because it allow us to drop the "docker" folder with added complexity to avoid those dependencies leaking in to the enterprise version.
  • Remove /edge/metrics endpoint
  • Deprecate custom strategies (Notice in the UI, docs and the API specification. We recommend constraints instead).
  • Deprecate "feature variants" in favor of "strategy variants". The goal is to "hide" it for all new feature flags being created.
  • Remove legacy Google SSO provider. Use SAML 2.0 or OpenID Connect instead.
  • Remove legacy "/api/feature" endpoint. Has been deprecated since Unleash v4.4.
  • Unleash Enterprise will make "License Key" mandatory.
  • Some private legacy deprecated methods and properties that are no longer in use will be removed, pending assessment. This is purely internal to the source code.
  • New global UI navigation (sidebar)
  • Rename "feature toggle" to "feature flag" in the UI (will not change API schema and definition or SDKs to keep breaking changes to a minimum)

Under consideration:

  • Drop the id column in the permissions table (this is an internal db change).
  • Remove deprecated old import (state service).
  • Error types to be standardized on either the message property or the description property but not both
  • Some deprecated properties in the OpenAPI spec will be removed

Dropped (did not make it for the v6 plans)

  • Migrate to ESM (uncertainty around jest support)

Background

A major version is an opportunity to remove deprecated features and add new features to our deprecation list.

@stale
Copy link

stale bot commented Sep 3, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 3, 2023
@stale stale bot closed this as completed Sep 13, 2023
@ivarconr ivarconr reopened this Sep 13, 2023
@stale stale bot removed the stale label Sep 13, 2023
@stale stale bot removed the stale label Sep 13, 2023
@gastonfournier
Copy link
Contributor

// Temporary workaround to figure out projectId for feature toggle updates.
// will be removed in Unleash v5.0
if (
!projectId &&
permissionsArray.some((permission) =>
[DELETE_FEATURE, UPDATE_FEATURE].includes(permission),
)
) {
const { featureName } = params;
projectId = await featureToggleStore.getProjectId(featureName);
} else if (
projectId === undefined &&
permissionsArray.some(
(permission) =>
permission === CREATE_FEATURE ||
permission.endsWith('FEATURE_STRATEGY'),
)
) {
projectId = 'default';
}
something to clean up

@chriswk
Copy link
Contributor

chriswk commented Feb 13, 2024

Removing /edge/metrics endpoint

@sebastian-bury
Copy link
Contributor

docs on upgrading from v5 to v6, changes needed, breaking things, etc.

@gastonfournier
Copy link
Contributor

Should we consider consolidating all migration files into a single file? We have 276 migrations. We could do a fresh DB dump after all migrations to start fresh

@chriswk
Copy link
Contributor

chriswk commented Apr 19, 2024

Should we consider consolidating all migration files into a single file? We have 276 migrations. We could do a fresh DB dump after all migrations to start fresh

What would be the gain? (Assume positive intentions, I'm curious, I'm not trying to be negative here)
My gut reaction is that this will complicate upgrades, and having the full DDL in one file will make that file unreadable.

@sighphyre
Copy link
Member

What would be the gain? (Assume positive intentions, I'm curious, I'm not trying to be negative here) My gut reaction is that this will complicate upgrades, and having the full DDL in one file will make that file unreadable.

If I'm reading the original comment correctly, we'd squash all the migrations into a single SQL script which would give us the opportunity to avoid some of those dangerous migrations that need to be done in phases

I do agree though, this sounds like it'd cause more pain than happiness

@gastonfournier
Copy link
Contributor

What would be the gain?

Asking the right questions! I was looking for performance gains. Gathering some data...

In my local machine.

  • Running all migrations in a fresh db: 3555ms
  • Running a single migration with a fresh dump: 1399ms

This also impacts on test execution speed. I ran yarn test resulting in:

Test Suites: 2 failed, 301 passed, 303 total
Tests:       2 failed, 2 skipped, 2786 passed, 2790 total
Snapshots:   103 passed, 103 total
Time:        199.772 s, estimated 203 s

And I logged up migration times:

  • We execute 125 up migrations during our OSS tests (sometimes more than once per suite)
  • Average time spent in test suites running up migrations: 4159.9 ms (note only 125 run up migrations and we have
  • Total sum: 519987 ms (519 seconds while all tests run under 200 seconds can only be explained by concurrency)
  • Maximum: 16776 ms

The issue is that the dump is not that great for migrations and without taking into account the failures I also didn't see a performance boost:

Test Suites: 34 failed, 269 passed, 303 total
Tests:       126 failed, 2 skipped, 2662 passed, 2790 total
Snapshots:   101 passed, 101 total
Time:        190.593 s, estimated 199 s

@damianh
Copy link

damianh commented Apr 30, 2024

Support for in-memory mode would be great. Our use case would be to run the container in short lived isolated scenarios (e.g. integration testing, running apps locally, CI) and not having to also run Postgres as part of this would make the experience "lighter".

@ivarconr
Copy link
Member Author

ivarconr commented May 7, 2024

Dropping support for postgres v10, v11, v12 and v13.

@chriswk I think we need to support at least v13 for another year. We have a few larger enterprises still stuck on that version.

@ivarconr
Copy link
Member Author

ivarconr commented May 7, 2024

Support for in-memory mode would be great. Our use case would be to run the container in short lived isolated scenarios (e.g. integration testing, running apps locally, CI) and not having to also run Postgres as part of this would make the experience "lighter".

You can run https://github.com/Unleash/unleash-edge in offline mode to support that use case.

@alvinometric
Copy link
Contributor

I would love to see ESM support 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

7 participants