You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This update ensures prediction results origins are consistently updated to "prediction-changed" when user edits are made to classification results. It includes:
A new updateOriginOnEdit() method in Regions.js for handling origin updates.
Adjustments to ToolBar controls to better support actions like annotation duplication.
Integration tests verifying that predictions are updated correctly post-edit.
Reason for Change
Previously, user edits did not update the origin value consistently, leading to potential data inconsistencies. This fix ensures user actions are accurately reflected in prediction metadata.
Testing
Integration tests have been implemented to verify proper behavior under various scenarios of user editing.
Ensure prediction origins are updated to "prediction-changed" upon user edits.
- Added `updateOriginOnEdit()` method in `Regions.js` to handle origin updates.
- Improved `ToolBar` controls to manage actions like duplicating annotations.
- Introduced integration tests to validate correct origin updates for predictions.
Implemented a new end-to-end test to verify the correct behavior of the undo feature in Label Studio. The test ensures that annotations revert to their predicted state after multiple undo actions. Added Hotkeys helper to simulate undo operations.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This update ensures prediction results origins are consistently updated to "prediction-changed" when user edits are made to classification results. It includes:
updateOriginOnEdit()
method inRegions.js
for handling origin updates.ToolBar
controls to better support actions like annotation duplication.Reason for Change
Previously, user edits did not update the origin value consistently, leading to potential data inconsistencies. This fix ensures user actions are accurately reflected in prediction metadata.
Testing
Integration tests have been implemented to verify proper behavior under various scenarios of user editing.