Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Conversation

@hlomzik
Copy link
Collaborator

@hlomzik hlomzik commented Jun 30, 2023

Remove 4 old feature flags for Taxonomy and Choices tags:

  • ff_dev_2007_rework_choices_280322_short
  • ff_dev_2007_dev_2008_dynamic_tag_children_250322_short
  • ff_dev_2100_preselected_choices_250422_short
  • ff_front_dev_2244_nested_choices_des_107_160522_short

All tests, docs and code are cleaned up, all changes made as if isFF() for this flags was always true.

PR fulfills these requirements

  • Tests for the changes have been added/updated (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)
  • Best efforts were made to ensure docs/code are concise and coherent (checked for spelling/grammatical errors, commented out code, debug logs etc.)
  • Self-reviewed and ran all changes on a local instance (for bug fixes/features)

Describe the reason for change

Flags should live a short amount of time giving us a failsafe if new feature or fix went wrong. They should be removed when it's settled, checked and enabled for any env.
And those flags are really old.

Does this change affect performance?

Flags are already there and enabled for ages, so all performance effects are already there.

Does this PR introduce a breaking change?

  • Yes, and covered entirely by feature flag(s)
  • Yes, and covered partially by feature flag(s)
  • No
  • Not sure (briefly explain the situation below)

What level of testing was included in the change?

  • e2e
  • integration
  • unit

Which logical domain(s) does this change affect?

Taxonomy, Dynamic Children

hlomzik and others added 29 commits March 14, 2023 15:04
First try, not fully working.
Now `<Choice selected="true">` will work inside Taxonomy as well.
- fix example for classifications
- fix typo in FF link
- add list of all Taxonomy and Choices related FFs
Not the best way to do it anyway
Children should be init before other processes like setDefaultValues()
This case can happen during store init in Label Stream,
task will be loaded later.
Base automatically changed from fb-lsdv-1476/preselected-taxonomy to master October 4, 2023 13:24
@github-actions github-actions bot added the chore label Oct 4, 2023
@hlomzik hlomzik changed the title chore: LSDV-5357: Remove Taxonomy flags chore: LEAP-221: Remove Taxonomy flags Oct 5, 2023
simpleData
} from 'data/control_tags/choice';
import { FF_DEV_2007 } from '@heartexlabs/ls-test/feature-flags';
} from '../../data/control_tags/choice';
Copy link
Contributor

@Gondragos Gondragos Oct 26, 2023

Choose a reason for hiding this comment

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

Is it an accountable change? I mean the change in from <path> part.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it's a bit early to introduce aliases without proper transition. Something was complaining about the path, like TS or something. And they won't work in monorepo right now.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
src/stores/Annotation/Annotation.js 74.63% <ø> (+0.03%) ⬆️
src/tags/control/Choice.js 95.40% <100.00%> (+2.35%) ⬆️
src/tags/control/Choices.js 78.20% <100.00%> (-1.07%) ⬇️
src/tags/control/Labels/Labels.js 84.00% <ø> (-1.19%) ⬇️
src/tags/control/Taxonomy/Taxonomy.js 72.22% <100.00%> (-0.22%) ⬇️
src/utils/feature-flags.ts 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@hlomzik hlomzik merged commit fd0c332 into master Oct 27, 2023
@hlomzik hlomzik deleted the fb-lsdv-5357/taxonomy-flags branch October 27, 2023 13:35
MasherJames pushed a commit to HelloPareto/label-studio-frontend that referenced this pull request Feb 29, 2024
* fix: LSDV-1476: Fix selected=true for Taxonomy

First try, not fully working.
Now `<Choice selected="true">` will work inside Taxonomy as well.

* Fix example; typo in FFs; list of taxonomy FFs

- fix example for classifications
- fix typo in FF link
- add list of all Taxonomy and Choices related FFs

* Add test for preselected Taxonomy; with 3617 FF off

* fix work with shared store (FF_DEV_3617)

* Add tests for static/dynamic + on/off cases

* Linting + remove unused alert

* Remove FF_DEV_2007 flag

* Remove FF_DEV_2007_DEV_2008 FF

* Actually use ffState in test

* Remove FF_DEV_2100_A

* Remove FF_DEV_2244

* Linting from prev commits

* Add missing required flags

* Fix TS recognition of cypress globals

* Remove unused FF groupping

Not the best way to do it anyway

* It does work with FF_DEV_3617 after the fix!

* Add comment about fixed updateValue()

* Update ls-frontend-test to have hasNoSelected()

* Fix tests

* Add FF to fix init order

Children should be init before other processes like setDefaultValues()

* Make it safe to `updateValue()` without task

This case can happen during store init in Label Stream,
task will be loaded later.

* Update ls-frontend-test

* Remove flags from tests

* Small fixes for test data

* Connect updated test helpers

* Get rid of unused FF list

* Update ls-frontend-test

---------

Co-authored-by: hlomzik <hlomzik@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants