Skip to content

Conversation

@showkath10
Copy link
Contributor

JIRA link

https://softwiretech.atlassian.net/browse/HEEDLS-445

Description

Added new page that will allow user to edit course options

Screenshots

image
image


Developer checks

(Leave tasks unticked if they haven't been appropriate for your ticket.)

I have:

  • Run the formatter and made sure there are no IDE errors.
  • Written tests for the changes (accessibility tests, unit tests for controller, data services, services, view models, etc)
  • Manually tested my work with and without JavaScript. Full manual testing guidelines can be found here: https://softwiretech.atlassian.net/wiki/spaces/HEE/pages/6703648740/Testing
  • Updated/added documentation in Swiki and/or Readme. Links (if any) are below:
  • Updated my Jira ticket with information about other parts of the system that were touched as part of the MR and have to be sanity tested to ensure nothing’s broken.
  • Scanned over my own MR to ensure everything is as expected.

Copy link
Contributor

@DanBloxham-sw DanBloxham-sw left a comment

Choose a reason for hiding this comment

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

Still a bunch of things to tackle.

}
}

public EditCourseOptionsViewModel() { }
Copy link
Contributor

Choose a reason for hiding this comment

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

From before: there is a subtlety here that is easy to miss.
The formatter will preserve any manually entered spaces. So running the formatter will keep the space you have added.
However, if you were to remove the space, running the formatter would not automatically re-add the space. That is the issue we are trying to solve here. We want the formatter to automatically add the space.

In order for that to happen, we need to change the formatter settings. These are stored in the .editorconfig file and can be edited interactively from:
Resharper options > Code Editing > General Formatter Style > Edit .editorconfig interactively
You then need to change the appropriate option so that the space is automatically added and save it to the .editorconfig file.

Let me know if you have any difficulty with this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ran the formatter. Thanks for the advice. Yes, I have configured it now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you configure it so that the .editorconfig registers the change? That way when this gets merged into master everyone will have it formatted consistently.

Copy link
Contributor

@DanBloxham-sw DanBloxham-sw left a comment

Choose a reason for hiding this comment

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

Some things need further changes and some things still need changing that have been missed. Any comments that have not been unresolved need some changes.

Also, there is a unit test failing. It is the one I mentioned in a missed comment that could be removed, so it can be easily dealt with. But in future you really should run all unit tests and make sure there aren't any failures before getting something re-reviewed.

}
}

public EditCourseOptionsViewModel() { }
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you configure it so that the .editorconfig registers the change? That way when this gets merged into master everyone will have it formatted consistently.

Copy link
Contributor

@DanBloxham-sw DanBloxham-sw left a comment

Choose a reason for hiding this comment

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

Still a couple of things from before that I have left the comments unresolved for.

One is on the ManageCourseControllerTests file (the comment might be obscured in a Hidden Conversations block)

The other is the .editorconfig file is still not showing any changes. I'm happy to lend a hand here if you'd like.

Copy link
Contributor

@DanBloxham-sw DanBloxham-sw left a comment

Choose a reason for hiding this comment

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

Nice! Feel free to merge.

@showkath10 showkath10 merged commit cccc56b into master Oct 29, 2021
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