Skip to content

Initial integration with test workflow in Cinder staging environment#31

Open
jaredhirsch wants to merge 2 commits into
mainfrom
cinder-integration
Open

Initial integration with test workflow in Cinder staging environment#31
jaredhirsch wants to merge 2 commits into
mainfrom
cinder-integration

Conversation

@jaredhirsch

Copy link
Copy Markdown
Member

You'll need the webhook key and API key to actually run this on the server, the staging keys are in our 1password shared vault. Note that anyone with staging env access can mint new keys as needed.

Closes FIDEFE-8522, FIDEFE-8523

You'll need the webhook key and API key to actually run this on the
server, the staging keys are in our 1password shared vault. Note that
anyone with staging env access can mint new keys as needed.

Closes FIDEFE-8522, FIDEFE-8523

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

chore: remove the empty file

Comment thread fxsharing/shares/views.py

# TODO - enqueue a job instead, so we don't block the response on Cinder responding
try:
report_link_sharing_quality(share)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thought: once we move this to a celery task, we shouldnt have to worry about any transient failures here.

Comment thread fxsharing/shares/views.py
return share


def report_link_sharing_quality(share):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

note: When we add this to the celery task, we should make sure to mock it in conftest.py

Comment thread fxsharing/shares/views.py
Comment on lines +36 to +38
class CinderWebhookIgnoredError(CinderWebhookError):
"""Not an error, a decision we ignore because we already took action, or it's for an entity we don't need to track."""

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

question: Will we be using this in a followup? I dont see it used currrently

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