* Add 'description' field to TrainingItems
Renamed existing field to name, removed the dummy property.
* Initial version of training item export view
* Fix line length issue and better spacing on exported PDF
* Added export button to item list
* pep8
* Implement code doctor tweaks
* Attempt to fix odd deployment issue
* Pad headers slightly
* Fix page numbering
* Upgrade to heroku-20 stack
* Move some gulp deps to dev rather than prod
* npm upgrade
* Fix audit time check in asset audit test
* Attempt at parallelising tests where possible
* Add basic calendar button test
Mainly to pickup on FullCalendar loading errors
* Upgrade python deps
* Tends to help if I push valid yaml
* You valid now?
* Fix whoops in requirements.txt
* Change python ver
* Define service in coveralls task
* Run parallelised RIGS tests as one matrix job
* Update python version in tests
* Cache python dependencies
Should majorly speedup parallelillelelised testing
* Purge old vagrant config
* No Ruby compass bodge, no need for rubocop!
* Purge old .idea config
* Switch to gh-a artifact uploading instead of imgur 'hack'
For test failure screenshots. Happy now @mattysmith22? ;p
* Oops, remove unused import
* Exclude tests from the coverage stats
Seems to be artifically deflating our stats
* Refactor asset audit tests with better selectors
Also fixed a silly title error with the modal
* Add title checking to the slightly insane assets test
* Fix unauth test to not just immediately pass out
* Upload failure screenshots as individual artifacts not a zip
Turns out I can't unzip things from my phone, which is a pain
* Should fix asset test on CI
* What about this?
* What about this?
Swear I spend my life jiggerypokerying the damn test suite...
* Does this help the coverage be less weird?
* Revert "Does this help the coverage be less weird?"
This reverts commit 39ab9df836.
* Use pytest as our test runner for better parallelism
Also rewrote some asset tests to be in the pytest style. May do some more. Some warnings cleaned up in the process.
* Bah, codestyle
* Oops, remove obsolete if check
* Fix screenshot uploading on CI (again)
* Try this way of parallel coverage
* Add codeclimate maintainability badge
* Remove some unused gulp dependencies
* Run asset building serverside
* Still helps if I commit valid YAML
* See below
* Different approach to CI dependencies
* Exclude node_modules from codestyle
* Does this work?
* Parallel parallel builds were giving me a headache, try this
* Update codeclimate settings, purge some config files
* Well the YAML was *syntactically* valid....
* Switch back to old coveralls method
* Fix codeclimate config, mark 2
* Attempt to bodge asset test
* Oops, again
Probably bedtime..
* Might fix heroku building
* Attempt #2 at fixing heroku
* Belt and braces approach to coverage
* Github, you need a Actions YAML validator!
* Might fix actions?
* Try ignoring some third party deprecation warnings
* Another go at making coverage show up
* Some template cleanup
* Minor python cleanup
* Import optimisation
* Revert "Minor python cleanup"
This reverts commit 6a4620a2e5.
* Add format arg to coverage command
* Ignore test directories from Heroku slug
* Maybe this works to purge deps postbuild
* Bunch of test refactoring
* Restore signals import, screw you import optimisation
* Further template refactoring
* Add support for running tests with geckodriver, do this on CI
* Screw you codestyle
* Disable firefox tests for now
That was way more errors than I expected
* Run cleanup script from the right location
* Plausibly fix tests
* Helps if I don't delete the pipeline folder prior to collectstatic
* Enable whitenoise
* Can I delete pipeline here?
* Allow seconds difference in assert_times_equal
* Disable codeclimate
* Remove not working rm command
* Maybe this fixes coverage?
* Try different coverage reporter
* Fix search_help to need login
* Made versioning magic a bit less expansive
We have more apps than I thought...
* Fix IDI0T error in Assets URLS
* Refactor 'no access to unauthed' test to cover all of PyRIGS
* Add RAs/Checklists to sample data generator
* Fix some HTML errors in templates
Which apparently only Django's HTML parser cares about, browsers DGAF...
* Port title test to project level
* Fix more HTML
* Fix cable type detail
* WIP: Basic work on audit
* WIP: Audit modal works
Need to get the ID search working.
* WIP: Javascript shenanigans for asset audit search
It's not clean but it works..
* Improve audit search bar
Optimise for APM!
* Filter asset audit list by never-audited
* Added cable functionality to audit form
Also improved styling
* FIX: Revert partialising of asset search
* Various UX Improvements
Also rearranged asset detail/edit to be more space efficient
* FIX: Remove assets from to-be-audited table when audited
Previously required a page reload
* Improve sample data generator
Does reversion properly and sets colours for asset statuses
* FIX: Gracefully handle 404s in audit search
* FEAT: Add buttons for some common defaults on audit form
TODO: Partialise those fragments and add them to the edit/create forms too.
* FIX: Fix asset sample data command when run alone
* FEAT: More handy buttons
* FIX: Stop quickbuttons being tab-selected
If someone's tabbing through, they won't be needing the buttons...
* FIX: Hide asset detail buttons for basic users
* FIX: Migrations
* Start tests for audit
* Some deduplication for testing code
* Improve asset audit testing
* Remember to test the tests Arona
* Potentially make modal tests more consistent
* FIX?: Up WebDriverWait timeout for modal tests
* FIX?: What about this way...
* Remake migrations
* Fix README badges to point to right branch
While I'm here eh :P
* Use aware time in audit
* Fix migrations again
* Fix for my fix...
* Modify audit exclusions to properly prevent data loss
* pep eiiiiiight
* Move relevant fields and create migration to autogen cable types
* CRUD and ordering
* FIX: Prevent creating duplicate cable types
* FIX: pep8/remove debug print
* FIX: Meta migrations... :>
* FIX: Update tests to match new UX
* Move cabletype menu links into 'Assets' dropdown
* Fix migration
* Specify version of reportlab
Should fix CI - looks like I went a bit too ham-handed in my requirements.txt purge last time...
* Started POM and assets test
* FEAT: Adapt unit tests from RIGS to assets
* CHORE: pep8...
* Added Asset Create and Edit forms
* Add non-cable asset creation test
* CHORE: Frickin pep8...
* Add cable asset creation test
* Basic asset create validation testing
* Asset edit tests are here
A bit dodgy in places but par for the course for me :P
* Add access level tests
* Delete unused code
Much less effort way to increase coverage stats :D
* Add delete sample data test for completeness
Chasing that sweet 100% coverage...
* Add supplier list page + tests
Also fix the supplier page not being ordered alphabetically
* Helps if I add the migration...
* Add supplier create/edit tests
* Asset duplicate tests
Also fixed some random bugs
* Asset search tests
* 404 tests and test that everything requires authentication
* Test visibility of form errors
And fix supplier form not displaying errors correctly!
* Fix broken search test
Co-authored-by: Matthew Smith <mattysmith22@googlemail.com>
* FIX: Remove misleading admin site title
* Moved across assets_id sorting to use proper numeric values. Also mofifies SQL command to find free asset IDs so that it works on postgres.
* Changed generateSampleAssetsData.py to include prefices on some cables.
* Fixed pep8
* Fixed missed migration
* Ensured hidden asset fields are completed on every database write
* CMULTI is a thing, and therefore a max prefix length of 5 cannot be a thing