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

Evaluation Service REST conversion #435

Merged
merged 35 commits into from
Jan 25, 2024

Conversation

christophertubbs
Copy link
Contributor

Created copies of CRUD calls that were going through websockets that instead go through GET and POST requests.

This includes formal messages and new views.

Prototypes for the next.js interface are along for the ride.

Copy link
Member

@aaraney aaraney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a few minor comments that should be pretty easy to get through. Thanks, @christophertubbs!

install.sh Show resolved Hide resolved
install.sh Show resolved Hide resolved
python/lib/core/dmod/core/common/__init__.py Show resolved Hide resolved
python/lib/core/dmod/core/common/types.py Show resolved Hide resolved
python/lib/core/dmod/core/common/types.py Show resolved Hide resolved
query_parameters["template_name__icontains"] = name

if author:
query_parameters['author__username__icontains'] = author
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming this is the correct number of underscores? It just looked a little different than the others.

password = password.decode()

username_and_password = f"{username}:{password}".encode()
return {"HTTP_AUTHORIZATION": f"Basic {base64.b64encode(username_and_password).decode()}"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth adding a comment here noting that this is a django specific keyword argument that gets turned into an Authorization header.

aaraney
aaraney previously approved these changes Oct 10, 2023
Copy link
Member

@aaraney aaraney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! Thanks for working through this with me, @christophertubbs!

@robertbartel
Copy link
Contributor

@christophertubbs, is this just waiting on resolving the conflicts with recent changes?

@christophertubbs
Copy link
Contributor Author

THIS HASN'T BEEN MERGED?!

Oof, yeah, it needs resolved. Let me jump through all that. This needs to be in there asap.

@robertbartel
Copy link
Contributor

Didn't we just deal with something else causing failures like this in another issue? Any chance the rebase didn't quite get everything in the latest master?

…ed an issue where django tests weren't correctly building output, restored some type hinting on an enum, and fixed some merge errors
@christophertubbs
Copy link
Contributor Author

Fixed. Someone please review and merge it before it becomes out of date again.

@aaraney aaraney merged commit 76809da into NOAA-OWP:master Jan 25, 2024
4 checks passed
@christophertubbs christophertubbs deleted the evaluation-frontend branch January 26, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create REST versions of Evaluation Service actions
3 participants