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

Fix #26163: Edit Contentlet implement Feature Flag #26242

Merged
merged 62 commits into from
Oct 2, 2023

Conversation

zJaaal
Copy link
Contributor

@zJaaal zJaaal commented Sep 22, 2023

πŸ€– Generated by Copilot at a85ba15

Summary

πŸ†•πŸ›‘οΈπŸ”„

This pull request adds a new content editor feature that can be enabled or disabled by a feature flag. It creates a new library edit-content that contains the routes and components for the new editor. It also updates the existing components and services that interact with the content editor to handle the routing and the feature flag logic. It adds tests and configuration files for the new library and the modified components and services. It modifies the shared-models.ts file to add new keys for the feature flag values.

New content editor
Feature flag controls the route
EditContentGuard

Walkthrough

Screenshots

Screen.Recording.2023-09-26.at.5.06.59.PM-2.mov

Entry Points Covered

Content search

  • Add
  • Edit

Pages

  • Create new page
  • Contextual menu
  • Bookmarks > Edit page

Site browser

  • Create new page
  • Page properties
  • Create new file

Tasks

  • Detail

@zJaaal zJaaal linked an issue Sep 22, 2023 that may be closed by this pull request
@zJaaal zJaaal marked this pull request as draft September 22, 2023 19:48
@zJaaal zJaaal requested a review from fmontes September 29, 2023 16:47
@dotcms-sonarqube
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dotcms-sonarqube
Copy link

@zJaaal zJaaal requested a review from fmontes October 2, 2023 14:13
@fmontes fmontes merged commit 7842da4 into master Oct 2, 2023
@fmontes fmontes deleted the 26163-edit-contentlet-implement-feature-flag branch October 2, 2023 17:28
manuelrojas pushed a commit that referenced this pull request Oct 5, 2023
#26242)

* dev (general): add new library and route

* dev (configuration resource Java): Add Feature Flags to WhiteList

* copywritting (edit-content routing): change name to match standard

* dev (edit content guard): add guard to prevent navigation without feature flag

* dev (app routing): add guard to edit content and move pages route to angular

* fix (general): add guard to providers and fix bad use of inject

* dev (custom event handler): add feature flag to redirect to new form instead of jsp old dialog

* fix (general test): test were broken by bad import in providers

* fix (form component test): missing import

* dev (general): add routing for creating contentlet

* dev (dot custom event handler): add re routing for edit task

* dev (dot pages store): add redirect to new portlet when feature flag is on

* fix (pages portlet): some tests were broken

* dev (dot edit page nav): Add redirect to new edit contentlet

* fix (pages create dialog): route were wrong

* Revert "dev (dot edit page nav): Add redirect to new edit contentlet"

This reverts commit d9a3f9f.

* dev (jsp): add contentType to event

* dev (dot custom event handler service): add event for create contentlet from edit page

* dev (general): final replace of the route to content

* dev (general): solve feedback

* feedback (edit content guard): change the approach to be functional guard

* feedback (general): add tests and small refactor

* feedback (general): small refactor

* feedback (feature flags): fix content editor 2 value

* dev (dot properties service): add methods to get feature flags values directly

* dev (jsp): edit redirects now sends the content type in the event

* dev (host jsp): now host emits a different event to go to legacy portlet

* dev (custom event handler): refactor to handle new feature flag method and verify content types

* fix (custom event handler): tests were broken

* fix (dot properties service): Add missing done callback

* dev (general): apply refactor for new feature flag method

* fix (dot feature flag resolver): test were broken

* dev (dot pages): add redirect to new edit contentlet checking the content types

* fix (pages store): fix tests

* feedback (general): change name of methods

* feedback (general): fix feature flag name
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.

Edit Contentlet: Implement feature flag
4 participants