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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃敟 Unleash v6 #4380

Open
11 of 14 tasks
ivarconr opened this issue Aug 1, 2023 · 13 comments
Open
11 of 14 tasks

馃敟 Unleash v6 #4380

ivarconr opened this issue Aug 1, 2023 · 13 comments

Comments

@ivarconr
Copy link
Member

ivarconr commented Aug 1, 2023

Decided:

Todo:

  • Make sure our documentation reflects v6 requirements and capabilities.

Dropped (did not make it for the v6 plans)

  • Migrate to ESM (uncertainty around jest support)
  • Drop the id column in the permissions table (this is an internal db change).

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 馃コ

@ivarconr ivarconr changed the title v6 plans 馃敟 Unleash v6 May 23, 2024
daveleek added a commit that referenced this issue May 27, 2024
This PR is part of #4380 - Remove legacy `/api/feature` endpoint.

## About the changes

### Frontend
- Removes the useFeatures hook
- Removes the part of StrategyView that displays features using this
strategy (not been working since v4.4)
- Removes 2 unused features entries from routes 

### Backend
- Removes the /api/admin/features endpoint
- Moves a couple of non-feature related tests (auth etc) to use
/admin/projects endpoint instead
- Removes a test that was directly related to the removed endpoint
- Moves a couple of tests to the projects/features endpoint
- Reworks some tests to fetch features from projects features endpoint
and strategies from project strategies
thomasheartman added a commit that referenced this issue May 27, 2024
In preparation for v6, this PR removes usage and references to
`error.description` instead favoring `error.message` (as mentioned
#4380)

I found no references in the front end, so this might be (I believe it
to be) all the required changes.
@sighphyre
Copy link
Member

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

Has been removed. We've pretty good at trimming out unused stuff that's easy to remove

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