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

Order rooms by name in the schedule #2913

Merged

Conversation

AndrewKvalheim
Copy link
Member

@AndrewKvalheim AndrewKvalheim commented Jan 24, 2022

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the upstream master branch.
  • The tests pass locally with my changes.
  • I have added tests that prove my fix is effective or that my feature works (if appropriate).
  • I have added necessary documentation (if appropriate).

Short description of what this resolves

On the published schedule, rooms are listed in undefined order—in practice, usually the order of creation. This can make the schedule confusing to read.

Changes proposed in this pull request

An explicit ordering feature would be useful, but for now it’s an improvement to just order by name.

let!(:conference) { create(:conference) }
let!(:venue) { create(:venue, conference: conference) }

describe 'with unalphabetized rooms' do
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need a spec for .order. The ActiveRecord test suite will make sure that this will never break...

CI time is developer time.

@AndrewKvalheim
Copy link
Member Author

Makes sense, thanks.

@hennevogel hennevogel merged commit 4a16836 into openSUSE:master Feb 7, 2022
@AndrewKvalheim AndrewKvalheim deleted the schedule-alphabetize-rooms branch February 19, 2022 05:17
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.

2 participants