Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Flask endpoint to paginate schema results.
The json can be invoked in the frontend as follows (the mentioned code should then be in Jinja on the frontend) :
Based on these constraint_types, it should be possible to make columns/headers, similar as in the work for schema headers (johltn#10). Note that the returned constraint_types are only constraints of which values are found, not all the inputs for the columns in the database.
ifc-pipeline-validation/application/database.py
Line 286 in a26426b
Each subcategory is then sliced and can be modified by calling the Flask API with start and end as parameters, similar as in https://github.com/johltn/ifc-pipeline-validation/blob/ui/application/main.py#L474 . The sorting is done by the work of Thomas in the database, which is also added to the current PR.
ifc-pipeline-validation/application/database.py
Lines 176 to 177 in a26426b
Furthermore, it is possible to access all the (slice) by using the constraint types found by the earlier statement.
For example (code will then be in Jinja on the front end):