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

Add sorting to workflow next states (comma-list, menu) #2983

Merged

Conversation

reiterl
Copy link
Member

@reiterl reiterl commented Nov 6, 2023

Closes #2929

@reiterl reiterl added the bug label Nov 6, 2023
@reiterl reiterl added this to the 4.2 milestone Nov 6, 2023
Copy link
Member

@Elblinator Elblinator left a comment

Choose a reason for hiding this comment

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

function

@@ -106,7 +106,7 @@ <h2 *ngIf="workflow">
<div class="inner-table">
<div *ngIf="!state.next_states.length">-</div>
<div *ngIf="state.next_states.length">
<os-comma-separated-listing [list]="state.next_states">
<os-comma-separated-listing [list]="sortedNextStates(state)">
Copy link
Member

@bastianjoel bastianjoel Nov 10, 2023

Choose a reason for hiding this comment

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

This can cause performance issues because this gets calculated on every change detection cycle and the underlying method performs a sort.

However, because the next states might be quite small in most cases I approve.

@Elblinator Elblinator merged commit bcc71f1 into OpenSlides:main Nov 10, 2023
5 checks passed
@reiterl reiterl deleted the 2929-workflow-next-states-sorting branch November 10, 2023 14:09
m-schieder added a commit that referenced this pull request Nov 13, 2023
* commit 'bf78a207a4b47dc0cefef536e403aed436654633':
  Fix analog default election mode (#3009)
  Add sorting to workflow next states (comma-list, menu) (#2983)
  Account import improvements (#2919)
  Motion block update place of recommender (#2989)
  Update material tabs and slider to mdc (#2998)
  change string (#2993)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workflow: Sorting changes in workflow doesn't affect drop-down-menu in next state
3 participants