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

17.0 fix merge content menu moc #984

Merged
merged 10 commits into from
Nov 28, 2024
Merged

Conversation

d-fence
Copy link
Contributor

@d-fence d-fence commented Nov 18, 2024

  1. [IMP] runbot: add a message when a build error is merged
    When digging into deactivated build errors, one cannot easily find why
    an error was deactivated and to which one it was merged.
  2. [FIX] runbot: bind the link error content action to the right model
  3. [IMP] runbot: add possibility to search errors for fingerprints
  4. [IMP] runbot: find duplicate error contents
  5. [IMP] runbot: reorganize build errors menus
  6. [FIX] runbot: refactor error content merge
  7. [IMP] runbot: rename _merge method into _relink on error_content
  8. [IMP] runbot: add a deduplicate server action
  9. [IMP] runbot: add responsible in error list view

@C3POdoo C3POdoo requested a review from a team November 18, 2024 11:27
@d-fence d-fence force-pushed the 17.0-fix-merge-content-menu-moc branch 3 times, most recently from 523eec5 to 26adfde Compare November 22, 2024 13:48
Copy link
Contributor

@Williambraecky Williambraecky left a comment

Choose a reason for hiding this comment

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

Minor optimisation :)

runbot/models/build_error.py Outdated Show resolved Hide resolved
@d-fence d-fence force-pushed the 17.0-fix-merge-content-menu-moc branch 2 times, most recently from 6a2b957 to c8766b8 Compare November 25, 2024 13:30
self_sorted = self.sorted(lambda ec: (not ec.error_id.test_tags, not ec.error_id.responsible, ec.error_id.error_count, ec.id))
base_error = self_sorted[0].error_id
base_error._merge(self_sorted.error_id - base_error)
self._merge()
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not correct, not the intention of the action_link_errors_contents, we want to merge parent, not errors.

When digging into deactivated build errors, one cannot easily find why
an error was deactivated and to which one it was merged.

With this commit, a message is added in the chatter to explain where it
is merged.
@d-fence d-fence force-pushed the 17.0-fix-merge-content-menu-moc branch from c8766b8 to 9220529 Compare November 26, 2024 14:43
@d-fence d-fence force-pushed the 17.0-fix-merge-content-menu-moc branch from e8ac147 to 47ee746 Compare November 27, 2024 11:30
@Xavier-Do Xavier-Do merged commit 0beb2cd into 17.0 Nov 28, 2024
3 checks passed
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.

3 participants