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

feat: Add support for tracking Data Issues via Asana #700

Merged

Conversation

nathanlawrence-asana
Copy link
Contributor

Summary of Changes

This adds an AsanaClient alongside the existing JIRA client.

Additionally, I've refactored the JIRA priority map to be a Python Enum that includes both the JIRA priority and severity and has helper methods for creating a priority object based on those values.

Tests

I've added one basic test.

Documentation

I'll happily add documentation if folks are happy with the current state of this PR.

CheckList

Make sure you have checked all steps below to ensure a timely review.

  • PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"
  • PR includes a summary of changes, including screenshots of any UI changes.
  • PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
  • In case of new functionality, my PR adds documentation that describes how to use it.
    • All the public python functions and the classes in the PR contain docstrings that explain what it does
  • PR passes all tests documented in the developer guide

@nathanlawrence-asana nathanlawrence-asana force-pushed the nathanlawrence-asana branch 3 times, most recently from 4db2e0c to 1de93e1 Compare September 30, 2020 19:05
@ttannis ttannis self-assigned this Sep 30, 2020
@nathanlawrence-asana nathanlawrence-asana changed the title feat Add support for tracking Data Issues via Asana feat: Add support for tracking Data Issues via Asana Sep 30, 2020
Signed-off-by: Nathan Lawrence <nathanlawrence@asana.com>
@feng-tao
Copy link
Member

feng-tao commented Oct 1, 2020

cc @allisonsuarez @ttannis @dikshathakur3119
not sure if either of you could take a look at the pr

Copy link
Member

@feng-tao feng-tao left a comment

Choose a reason for hiding this comment

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

I did a basic test with this branch in our staging and everything is fine.

lgtm, @nathanlawrence-asana could you write / update the existing doc about how to use Asana for tracking data issues (e.g how to config with a basic example)? thanks

Copy link
Contributor

@ttannis ttannis left a comment

Choose a reason for hiding this comment

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

self.assertEqual(data_issue.title, self.title)
self.assertEqual(data_issue.url, self.url)
self.assertEqual(data_issue.status, self.status)
priority=self.priority).serialize()
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious why you use serialize() here.

@@ -64,6 +64,7 @@ class Config:

# Settings for Issue tracker integration
ISSUE_LABELS = [] # type: List[str]
ISSUE_TRACKER_API_TOKEN = None # type: str
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this used? I don't see it in the asana client, or did I miss something?

@feng-tao
Copy link
Member

feng-tao commented Oct 7, 2020

ping @nathanlawrence-asana let us know once you update the pr with a doc.

@feng-tao
Copy link
Member

feng-tao commented Oct 9, 2020

ping @nathanlawrence-asana

@feng-tao
Copy link
Member

I am going to merge the pr now. @nathanlawrence-asana let us know if you have the chance to create a doc for the new client.

@feng-tao feng-tao merged commit 32504c0 into amundsen-io:master Oct 12, 2020
dikshathakur3119 pushed a commit that referenced this pull request Oct 15, 2020
Signed-off-by: Nathan Lawrence <nathanlawrence@asana.com>
Signed-off-by: dikshathakur3119 <dikshathakur3119@gmail.com>
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.

3 participants