Skip to content

Gt1180 apel loading validator#82

Open
rowan04 wants to merge 11 commits intoapel:devfrom
rowan04:GT1180-apel-loading-validator
Open

Gt1180 apel loading validator#82
rowan04 wants to merge 11 commits intoapel:devfrom
rowan04:GT1180-apel-loading-validator

Conversation

@rowan04
Copy link
Contributor

@rowan04 rowan04 commented Feb 12, 2026

this currently contains all commits from #75 as well, but I believe it should sort itself out when that PR gets merged into dev?

host where this is running: http://host-172-16-103-131.nubes.stfc.ac.uk/validator/

Resolves GT-1228
Resolves GT-1328

- base file template for the new message validator
- makes use of django app creator startapp
- within apps.py
- update config to have the correct name
- Linked into the Apel RecordFactory
- Doesn't make use of django model
- also cleans up some unnecessary code (unused exception handling)
- validation output is also kept on submission and refresh
- has to import the apel record type classes
- has an option for all, which uses the record header instead
- adds more comments
- reworks exception handling
- adds apel packages to requirements
- adds styling
- adds link to validator page onto home monitoring page
- move function definition out of other function
- sort out stylesheet location error
- fix APEL typo
- has radio buttons to specifiy whether record should be validated or
  loaded
- adds new load method
- creates instance of apel loader
- makes use of a blackhole mariadb database, which doesn't store data
- also fixes validator bug which would prevent v0.4 records from getting
  a formatted output
@@ -0,0 +1,3 @@
from django.contrib import admin

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'admin' is not used.
@@ -0,0 +1,3 @@
from django.test import TestCase

Check notice

Code scanning / CodeQL

Unused import Note test

Import of 'TestCase' is not used.
}

except (configparser.NoSectionError) as err:
print("Error in configuration file. Check that file exists first: %s" % err)

Check notice

Code scanning / CodeQL

Use of a print statement at module level Note

Print statement may execute during import.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant