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: feature flag for xml editor #2418

Merged
merged 13 commits into from
Dec 6, 2023

Conversation

mccar
Copy link

@mccar mccar commented Nov 8, 2023

Ticket - https://oat-sa.atlassian.net/browse/REL-1343

Goal

Create a new feature flag that unlocks this xml editor feature, so that we could enable it by changing environment variable secret

Changelog

  • fix: Feature flag for XML editor
  • feat: Move XmlEdit clas to new DI service container

How to test

  1. Enable XML editor as described in the task
  2. Set feature to true docker exec -it {CONTAINER_NAME} php index.php 'oat\tao\scripts\tools\FeatureFlag\FeatureFlagTool' -s FEATURE_FLAG_XML_EDITOR_ENABLED -v true
  3. Change option in config config/taoQtiTest/xmlEditor.conf.php

@codecov-commenter
Copy link

codecov-commenter commented Nov 9, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c68ace7) 16.94% compared to head (178853a) 16.96%.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #2418      +/-   ##
=============================================
+ Coverage      16.94%   16.96%   +0.01%     
- Complexity      3203     3204       +1     
=============================================
  Files            208      208              
  Lines          11542    11543       +1     
=============================================
+ Hits            1956     1958       +2     
+ Misses          9586     9585       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@yaraslau-kavaliou yaraslau-kavaliou left a comment

Choose a reason for hiding this comment

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

  • New code is covered by tests
  • Tests are running successfully on my local machine
  • New code is respecting code style rules
  • New code is respecting best practices
  • Feature is working correctly on my local machine
  • Acceptance criteria are respected
  • Pull request title and description are meaningful
  • Pull request's target is not master
  • Commits are following conventional commits
  • Commits messages are meaningful
  • Commits are atomic

Looks good and works locally after existing env update and for fresh installation

Copy link

github-actions bot commented Dec 6, 2023

Version

Target Version 48.1.1
Last version 48.1.0

There are 0 BREAKING CHANGE, 0 feature, 13 fixes

@augustas augustas merged commit fcbd88c into develop Dec 6, 2023
4 of 5 checks passed
@augustas augustas deleted the fix/REL-1343/feature-flag-for-xml-editor branch December 6, 2023 12:29
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.

4 participants