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

Backport/BSA-391/Allow to disable figure widgets #499

Merged

Conversation

jsconan
Copy link
Contributor

@jsconan jsconan commented Dec 8, 2023

Related to: https://oat-sa.atlassian.net/browse/BSA-391

Backport of #498 to version November 2023 LTS

Requires:

Summary

Manage a feature flag for disabling the figure widget.

Details

Some customers rely on the block positioning of the figures for aligning images in columns. The figure widget sets them to inline positioning, hence the need to have a feature flag for disabling it. The other possibility is to roll back the feature, but this is less handy.

The feature can be disabled thanks to the feature flag FEATURE_FLAG_DISABLE_FIGURE_WIDGET.
The feature is enabled by default

How to test

  • have all dependencies (other PR) installed
  • edit an item and place images on the canvas. Check the attached ticket for a sample item.
  • turn the feature flag on and off, and see the differences

It can also be tested on the following temporary environments:

Tidbit

To set and manage the feature flag, take a look at this documentation.

php index.php 'oat\tao\scripts\tools\FeatureFlag\FeatureFlagTool' -s FEATURE_FLAG_DISABLE_FIGURE_WIDGET -v true

@jsconan jsconan requested a review from gabrielfs7 December 11, 2023 08:41
Copy link
Contributor

@gabrielfs7 gabrielfs7 left a comment

Choose a reason for hiding this comment

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

Thanks @jsconan ,

  • New code is covered by tests (if applicable)
  • Tests are running successfully (old and new ones) on my local machine (if applicable)
  • New code is respecting code style rules
  • New code is respecting best practices
  • New code is not subject to concurrency issues (if applicable)
  • Feature is working correctly on my local machine (if applicable) - JS did a demo
  • Acceptance criteria are respected
  • Pull request title and description are meaningful

@jsconan jsconan merged commit 18f66f1 into release-12.39.0.1 Jan 16, 2024
@jsconan jsconan deleted the backport/BSA-391/allow-to-disable-figure-widgets branch January 16, 2024 15:17
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.

2 participants