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: unlist core packages from plugin list #20266

Merged
merged 4 commits into from May 21, 2024
Merged

Conversation

Marc-Roig
Copy link
Contributor

@Marc-Roig Marc-Roig commented May 6, 2024

What does it do?

We were listing all internally installed plugins on the admin plugins page.

This PR removes the ones that are pre-installed for the user (core plugins), it was confusing as users were not able to uninstall them, or even see them listed in their "package.json" files.

Before After

Resolves: Content-722

@Marc-Roig Marc-Roig added source: core:admin Source is core/admin package pr: chore This PR contains chore tasks (cleanups, configs, tooling...) labels May 6, 2024
@Marc-Roig Marc-Roig self-assigned this May 6, 2024
@Marc-Roig Marc-Roig requested a review from remidej May 6, 2024 12:53
Comment on lines 157 to 159
// List of core plugins that are always enabled,
// and so it's not necessary to display them in the plugins list
const CORE_PLUGINS = ['content-manager', 'content-type-builder', 'email', 'upload', 'i18n'];
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the official term now is core packages

Copy link
Contributor Author

Choose a reason for hiding this comment

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

shouldn't we rename everything in here "packages"? even the configuration references plugins, and it feels "off" to reference packages in this const variable but reference plugins in the rest of the controller.

@derrickmehaffy
Copy link
Member

Shouldn't review workflows and releases be delisted also?

@Feranchz
Copy link
Contributor

Feranchz commented May 6, 2024

Shouldn't review workflows and releases be delisted also?

I was thinking the same, and releases is also only for EE editions... I know technically is always "installed" but doing nothing for CE edition but always felt weird for me show it when is really not doing anything

@derrickmehaffy
Copy link
Member

Shouldn't review workflows and releases be delisted also?

I was thinking the same, and releases is also only for EE editions... I know technically is always "installed" but doing nothing for CE edition but always felt weird for me show it when is really not doing anything

Indeed yeah I agree, that code shouldn't even be loaded on CE to begin with.

@Marc-Roig
Copy link
Contributor Author

good point! will add those to the list

Copy link

vercel bot commented May 7, 2024

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

Name Status Preview Comments Updated (UTC)
contributor-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2024 0:05am

@Marc-Roig Marc-Roig requested a review from remidej May 7, 2024 08:22
}));
// List of core plugins that are always enabled,
// and so it's not necessary to display them in the plugins list
const CORE_PLUGINS = [
Copy link
Member

Choose a reason for hiding this comment

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

This list will need to be maintained with the same list as https://github.com/strapi/strapi/blob/v5/main/packages/core/core/src/loaders/plugins/get-enabled-plugins.ts shall we write that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, will add a comment

@Marc-Roig Marc-Roig merged commit ef532b9 into v5/main May 21, 2024
78 of 83 checks passed
@Marc-Roig Marc-Roig deleted the v5/unlist-core-plugins branch May 21, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: chore This PR contains chore tasks (cleanups, configs, tooling...) source: core:admin Source is core/admin package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants