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

Refactor buildsystem to NPM/Gulp, port to BS4 & rewrite RIGS tests accordingly... #412

Merged
merged 288 commits into from
Jan 23, 2021

Conversation

FreneticScribbler
Copy link
Member

@FreneticScribbler FreneticScribbler commented Sep 15, 2020

...and some more features along the way. I am the best at scope, the best I say!

Much testing required. No idea if Heroku is even going to be able to spin it...

New Features

  • Digitised Risk Assessments and Event Checklists
    • Not a lot of validation going on here, these are intended to be reviewed by a human, and have a mechanism for doing so that is similar to event approvals
    • However, RIGS will display a confirmation screen when a 'nonstandard' RA is created, asking the user to check with a supervisor/confirm they have done so. It probably needs tweaking to be a bit less annoying...
    • RIGS determines event size automatically when a RA is filled out based on the answers in the power section, then shows the relevant section in subsequent event checklist(s).
  • Dark theme!(!!)
  • General rethink of layouts and UX to hopefully make stuff much more clean, readable and consistent. Also should make some little known features more accessible and understandable.
  • Search bar now follows you around so it's always in reach.
  • Version history for Invoices/Payments. Also, you should see more stuff show up in the recent changes feed...provided you have the right permissions.
  • Status chips on the rigboard, to help you see an event's overall status at a glance.
  • Ctrl-Enter global form submission shortcut

Notable Bugs Squashed

  • Firefox's infuriating lack of support for datetime-local has been fixed with javascript fuckery. No more manually entering ISO format into 'Access at'!
  • File naming for paperwork now works more consistently (Technical: Previously, we weren't wrapping the spaces in the file names properly, which made some browsers choke)

Technical Stuff

  • Ported to Bootstrap4 and generally upgraded dependencies across the board
  • RIGS tests rewritten from the ground up, coverage now steady at >90%!
  • Better buildsystem that also includes:
    • Browsersync, for automated reloads when changing templates
    • No more bloody compass bodge. Ruby I hate you
    • NPM >.>
  • Much much much template deduplication, perhaps too much in places
  • Lots of logic that was previously in templates moved up to python level
  • User auth and versioning shite separated into (mostly) independent modules, versioning module does some black magic™️ for automatic views.

Closes #162
Closes #215
Closes #136 because I got carried away
Closes #405
Supersedes and closes #337.
Probably closes #322
Closes #391
Closes #398
Closes #413

FreneticScribbler and others added 30 commits March 18, 2020 17:36
I need to work out if I can seperate background and primary colours like BS3 did
//TODO Rather than have seperate asset templates, convert 'id' into a template variable
Asset specific templates begone. Still need to bring back the ID formatting for the Rigboard.
The model remains in RIGS for now, as it's pretty painful to move...
# Conflicts:
#	assets/models.py
#	assets/templates/asset_update.html
#	assets/templates/partials/asset_buttons.html
#	assets/templates/partials/asset_list_table_body.html
#	assets/views.py
#	templates/base_assets.html
TODO - need to ensure moved models are *moved* rather than deleted and recreated!
Bit too heavy handed with the deduplication there Arona
Needs the latter half rewriting once we have an EventDetail POM
So close to killing test_functional.EventTest!
@FreneticScribbler
Copy link
Member Author

Also allow space on RA for attaching links to rigging and power plans in relevant Sharepoint folders

@FreneticScribbler FreneticScribbler temporarily deployed to pyrigs-pr-412 December 17, 2020 17:49 Inactive
@FreneticScribbler FreneticScribbler temporarily deployed to pyrigs-pr-412 December 27, 2020 17:51 Inactive
Indeed, it may not
@FreneticScribbler FreneticScribbler temporarily deployed to pyrigs-pr-412 December 27, 2020 18:28 Inactive
@FreneticScribbler FreneticScribbler temporarily deployed to pyrigs-staging December 27, 2020 18:33 Inactive
@FreneticScribbler FreneticScribbler temporarily deployed to pyrigs-pr-412 December 27, 2020 18:42 Inactive
@FreneticScribbler FreneticScribbler temporarily deployed to pyrigs-staging December 27, 2020 18:47 Inactive
@FreneticScribbler FreneticScribbler temporarily deployed to pyrigs-pr-412 December 27, 2020 18:49 Inactive
@FreneticScribbler FreneticScribbler temporarily deployed to pyrigs-staging December 27, 2020 19:00 Inactive
@FreneticScribbler
Copy link
Member Author

FreneticScribbler commented Dec 30, 2020

If you ignore anything not python and migrations/tests, there's only like 50 files to review @mattysmith22 :P

https://github.com/nottinghamtec/PyRIGS/pull/412/files?file-filters%5B%5D=.py&w=1

@FreneticScribbler FreneticScribbler temporarily deployed to pyrigs-pr-412 January 23, 2021 17:48 Inactive
@FreneticScribbler FreneticScribbler temporarily deployed to pyrigs-staging January 23, 2021 18:55 Inactive
@FreneticScribbler FreneticScribbler temporarily deployed to pyrigs-staging January 23, 2021 19:33 Inactive
@FreneticScribbler FreneticScribbler merged commit 3414204 into master Jan 23, 2021
RIGS Refactor automation moved this from In progress to Done Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment