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: honor non-editable attribution/signal state #2501

Merged

Conversation

mstykow
Copy link
Collaborator

@mstykow mstykow commented Jan 15, 2024

Summary of changes

  • when viewing a non-editable signal or attribution it is not necessary to load any suggestions
  • the input field was already correctly disabled before
  • only allow auditing options to be interactive when the displayed attribution/signal is editable

Context and reason for change

Avoid unnecessary background requests and honor non-editable state.

How can the changes be tested

While in audit view, open the dev tools network tab. Then select once an attribution that is editable and then one that is not (for example a signal). Notice that only the editable attribution should trigger network requests.
Find a signal which is marked as "needs follow-up" and note that you cannot remove the tag (previously possible on main).

…ttribution

- when viewing a non-editable signal or attribution it is not necessary to load any suggestions
- the input field was already correctly disabled before

Signed-off-by: Maxim Stykow <maxim.stykow@tngtech.com>
… attribution/signal is editable

Signed-off-by: Maxim Stykow <maxim.stykow@tngtech.com>
@mstykow mstykow changed the title fix: disable suggestions loading when viewing a non-editable signal/attribution fix: honor non-editable attribution/signal state Jan 15, 2024
Copy link
Contributor

@MarkusObendrauf MarkusObendrauf left a comment

Choose a reason for hiding this comment

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

Nice

@mstykow mstykow merged commit c24013d into main Jan 15, 2024
5 checks passed
@mstykow mstykow deleted the fix-disable-autocomplete-network-requests-when-not-editable branch January 15, 2024 13:50
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.

None yet

2 participants