Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
changed package version because of compatibility issues, added descri…
Browse files Browse the repository at this point in the history
…ption for a field in schema, added space for end of file

Signed-off-by: Glenda Garcia <glendag1015@gmail.com>
  • Loading branch information
glenda1015 committed Aug 3, 2023
1 parent fe35df1 commit 043221e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ ENV TRIAGE_PORTAL_HOST=localhost
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d
COPY templates/ /etc/nginx/templates/
EXPOSE 80
EXPOSE 80
2 changes: 1 addition & 1 deletion src/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ server {
proxy_redirect off;
}

}
}
2 changes: 1 addition & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
asgiref==3.7.2
astroid==2.15.6
azure-core==1.26.1
azure-core==1.28.0
azure-storage-blob==12.17.0
bandit==1.7.5
black==22.10.0
Expand Down
5 changes: 3 additions & 2 deletions src/triage/api/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def mutate(cls, root, info, file, package_url, checksum):

# Success is set based on whether there are any errors
if errors:
print("Array is not empty")
return UploadFileMutation(success=False, errors=errors)

# Array is empty, so file upload is successful
Expand Down Expand Up @@ -226,7 +225,9 @@ class Mutation(graphene.ObjectType):
)
# jwt mutations
token_auth = graphql_jwt.ObtainJSONWebToken.Field()
verify_token = graphql_jwt.Verify.Field()
verify_token = graphql_jwt.Verify.Field(
description="Validates the token and obtain the token payload",
)


schema = graphene.Schema(query=Query, mutation=Mutation)

0 comments on commit 043221e

Please sign in to comment.