Skip to content

Issue permits as vc with mdt #1634

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

Merged
merged 47 commits into from
Feb 1, 2021
Merged

Issue permits as vc with mdt #1634

merged 47 commits into from
Feb 1, 2021

Conversation

Jsyro
Copy link
Collaborator

@Jsyro Jsyro commented Jan 26, 2021

Still needs:

  • dev openshift secret
  • test openshift secret
  • backend tests
  • add to permit approval
  • error handling

Add button (admins only) to call MDT's issuer controller to issue Verifiable Credentials to businesses in orgbook.

@Jsyro Jsyro added 🌶 Enhancement This is a new feature or request. 🧪 Needs tests Unit and/or functional tests have not been created yet. 🏭 CI/CD This pull request includes CI/CD changes. 💾 Backend This pull request includes backend changes. 💻 Frontend This pull request includes frontend changes. 🤡 Superfluous Label This label is completely superfluous, but sometimes people complain that there are not enough labels 🤯 Mind blown labels Jan 26, 2021
@github-actions
Copy link

Review Reminders

  • Are there auth tests for new endpoints?
  • Are there snapshot tests for new React components?

mine, permit = create_mine_and_permit()
MinePartyAppointmentFactory(permit=permit, permittee=True)
with current_app.test_request_context() as a, patch(
'app.api.services.issue_to_orgbook_service.requests.post') as mock:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This module traversal was getting confused because the app module has an api attribute, when i wanted it to traverse into the api module..

I've renamed the local variable in the file, but i can change it's name or do some more research on if this can be changed.

@Jsyro Jsyro removed the 🧪 Needs tests Unit and/or functional tests have not been created yet. label Jan 27, 2021
@Jsyro Jsyro added the 👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback. label Jan 27, 2021
exzizt
exzizt previously approved these changes Jan 27, 2021
Copy link
Contributor

@exzizt exzizt left a comment

Choose a reason for hiding this comment

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

Woot woot! Nice work Jason. 💯

nayr974
nayr974 previously approved these changes Jan 27, 2021
Copy link
Contributor

@nayr974 nayr974 left a comment

Choose a reason for hiding this comment

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

Yeah fine I guess

@@ -52,12 +53,12 @@ def create_app(test_config=None):

def register_extensions(app):

api.app = app
root_api_namespace.app = app
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this better, thanks

@@ -111,6 +112,11 @@
PermitAmendmentResource,
'/<string:mine_guid>/permits/<string:permit_guid>/amendments/<string:permit_amendment_guid>')

api.add_resource(
PermitAmendmentIssueVCResource,
'/<string:mine_guid>/permits/<string:permit_guid>/amendments/<string:permit_amendment_guid>/issue-vc-to-orgbook'
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't really care if this is POC land, but this should probably be something named more like "/credential" instead of "issue-vc-to-orgbook" which seems super not restful.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did make some reversals of making some of the names more generic vs specific. I'll take another pass at this one.

.then((response) => {
notification.success({
message: `Successfully Issued Permit Verifiable Credentials, Thanks Jason`,
duration: 10,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update to "Successfully Issued Permit Verifiable Credentials, Thanks Oh Great Ryan, sole developer of MDS"

@Jsyro Jsyro dismissed stale reviews from nayr974 and exzizt via 4ea2e34 January 27, 2021 22:51
exzizt
exzizt previously approved these changes Jan 30, 2021
Copy link
Contributor

@exzizt exzizt left a comment

Choose a reason for hiding this comment

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

💥

nayr974
nayr974 previously approved these changes Jan 30, 2021
@Jsyro Jsyro dismissed stale reviews from nayr974 and exzizt via ea3fb2c January 30, 2021 01:01
@Jsyro Jsyro merged commit 697a52e into develop Feb 1, 2021
@Jsyro Jsyro deleted the Issue-permits-as-VC-with-MDT branch February 1, 2021 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💾 Backend This pull request includes backend changes. 🏭 CI/CD This pull request includes CI/CD changes. 🌶 Enhancement This is a new feature or request. 💻 Frontend This pull request includes frontend changes. 👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback. 🤡 Superfluous Label This label is completely superfluous, but sometimes people complain that there are not enough labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants