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

Feature/19 gspc admin page #505

Merged
merged 23 commits into from
Mar 7, 2024
Merged

Conversation

john-labbate
Copy link
Contributor

@john-labbate john-labbate commented Mar 5, 2024

#19

.env_example Outdated
@@ -60,7 +60,7 @@ DB_URI="postgres://postgres:postgres@localhost:5432/postgres"
#
# Deployment TL;DR: Set this in the app's environment variables.

BASE_URL="https://training.smartpay.gsa.gov"
BASE_URL="http://localhost:3000"
Copy link
Contributor

Choose a reason for hiding this comment

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

Believe this can be reverted as it list to update in the deploy instructions in the readme.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted

@@ -33,7 +33,7 @@ const pageTitle = "Admin Panel";
</div>
</div>
</li>
<li class="usa-card tablet:grid-col-6">
<!-- <li class="usa-card tablet:grid-col-6">
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be commented out? How will the admin access the page?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They want it removed for this deployment

async def gspc_admin_invite(
gspcInvite: GspcInvite,
repo: GspcInviteRepository = Depends(gspc_invite_repository),
user=Depends(RequireRole(["Admin"]))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you are missing the Authorization header in the request on the vue component. Can you check to see if the user authorization is happening?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added, nice spot. I still need dataset for my local to get the admin role

raise ValueError("Certification expiration date cannot be in the past")
return value

# def __init__(self, email_addresses, certification_expiration_date):
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove commented out code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

@john-labbate john-labbate merged commit a723946 into staging Mar 7, 2024
6 checks passed
@felder101 felder101 deleted the feature/19-gspc-admin-page branch March 7, 2024 14:47
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.

2 participants