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

745 add order parameter #790

Merged
merged 5 commits into from
Nov 30, 2023

Conversation

CalamityC
Copy link
Collaborator

@CalamityC CalamityC commented Oct 20, 2023

Description

Related issue: #745

Motivation and Context

How has this been tested?

Manually and locally in the UI

Screenshots (if appropriate)

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Checklist

  • I have read the contributor guide.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

* pass order value to Section, Page, and Question
* pass order value to QuestionSet
* pass order value to Question from QuestionSet
@MyPyDavid MyPyDavid added this to the 2.1.0 milestone Oct 20, 2023
@MyPyDavid MyPyDavid linked an issue Oct 20, 2023 that may be closed by this pull request
@CalamityC CalamityC marked this pull request as ready for review October 24, 2023 14:24
Copy link
Member

@jochenklar jochenklar left a comment

Choose a reason for hiding this comment

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

Hi @CalamityC ! Thanks for the patch. Could you disable your autoformatter for RDMO. I do not care much on how you format the code but the automatic changes clutter the diff. (We had a long discussion about autoformatting the python part code and we decided (i.e. I insisted) that we don't autoformat for now.)

<code className={className}>{uri}</code>
</Link>
</Link>{order !== undefined && order !== null ? <code className="code-order ng-binding">{order}</code> : null}</>
Copy link
Member

Choose a reason for hiding this comment

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

I think there should be a {' '} between the URI and the order.

Copy link
Member

Choose a reason for hiding this comment

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

You can use lodash's !isEmpty(order) here (import isEmpty from 'lodash/isEmpty').

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You can use lodash's !isEmpty(order) here (import isEmpty from 'lodash/isEmpty').

Unfortunately isEmpty does not work with numbers

Copy link
Member

Choose a reason for hiding this comment

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

@MyPyDavid MyPyDavid added the javascript Pull requests that update Javascript code label Nov 10, 2023
@CalamityC CalamityC merged commit ebf37d4 into rdmorganiser:dev-2.1.0 Nov 30, 2023
17 checks passed
@CalamityC CalamityC deleted the 745-add-order-parameter branch November 30, 2023 11:18
@jochenklar
Copy link
Member

Hey @CalamityC I just saw that questions don't have the order visible, was that on oversight or on purpose. I think it would be nice to have the parameter visible there as well.

@CalamityC
Copy link
Collaborator Author

Hi @jochenklar I added it to Question and QuestionSet. Where else should I add it? Could you post a screenshot?

@jochenklar
Copy link
Member

Ah sorry, I got it wrong. Its not in the nested section, page and question set view. But maybe nobody uses them anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code type:feature-request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add order parameter back to managament interface
3 participants