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

Add endpoint to return inuring priority from generated files #1032

Open
sambles opened this issue May 2, 2024 · 2 comments
Open

Add endpoint to return inuring priority from generated files #1032

sambles opened this issue May 2, 2024 · 2 comments
Assignees
Labels
Enhancement Small improvement or refinement.

Comments

@sambles
Copy link
Contributor

sambles commented May 2, 2024

Issue Description

The inuring_priority is stored in the ri_layers.json file within an input file tar.

{                                                                                                                                             
    "1": {
        "inuring_priority": 1,
        "risk_level": "LOC",
        "directory": "/home/sam/repos/models/piwind/runs/files-20240102095204/RI_1"
    }   
}

Add an endpoint to an analyses object to return this data

@sambles sambles added the Enhancement Small improvement or refinement. label May 2, 2024
@sambles
Copy link
Contributor Author

sambles commented May 2, 2024

Might be a good time to add in this feature too #689

https://stackoverflow.com/questions/4024271/rest-api-best-practices-where-to-put-parameters

http://localhost:8000/v2/analyses/1/input_file?select_file=ri_layers.json --> returns contents of ri_layers.json
if file not found --> return Bad Request listing avalible files for section.

Add /analyses/{id}/output_file_list/ /analyses/{id}/input_file_list/ to list options

@sambles sambles moved this to In Progress in Oasis Dev Team Tasks May 15, 2024
@sambles sambles self-assigned this May 15, 2024
@sambles
Copy link
Contributor Author

sambles commented May 15, 2024

Screenshot from 2024-05-15 14-51-53

Screenshot from 2024-05-15 14-52-15

The Lot 3 PR seems to be extracting and storing each output file as a separate RelatedFile object, I'm not sure on this approach can might cause a lot of clutter.. could we just a similar mechanism to operate on files within an output tar? --> needs some thought

@benhayes21 benhayes21 moved this from In Progress to Todo in Oasis Dev Team Tasks Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Small improvement or refinement.
Projects
Status: Todo
Development

No branches or pull requests

1 participant