- Notifications
You must be signed in to change notification settings - Fork674
chore: attempt to be more informative for missing attributes#1702
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecov-commenter commentedNov 21, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## main #1702 +/- ##==========================================+ Coverage 92.01% 92.02% +0.01%========================================== Files 75 75 Lines 4670 4677 +7 ==========================================+ Hits 4297 4304 +7 Misses 373 373
Flags with carried forward coverage won't be shown.Click here to find out more.
|
dafe0be tof8dde55Comparenejch commentedNov 22, 2021
This will also close#1138. |
f8dde55 tob7cd66bCompare
nejch left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks@JohnVillalovos, just a few small notes from me.
I was thinking something similar for missing methods in e.g.Issue vsProjectIssue to guide users towards creating the right objects or even give amake_editable() method for those to convert them. So I really like it and would maybe build on this later as well. I think there might also be a few other cases where this could be extended later, such as after running save/update and so on.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
JohnVillalovos commentedNov 23, 2021
Thanks for the review! Will work on updating the PR. I like the idea of catching the common issues that users of the library encounter and trying to point them to how to fix it so they file less issues 😊 |
b7cd66b tof881a01Compare644ef29 to6c5fe03CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
6c5fe03 to760beb4CompareA commonly reported issue from users on Gitter is that they get anAttributeError for an attribute that should be present. This is oftencaused due to the fact that they used the `list()` method to retrievethe object and objects retrieved this way often only have a subset ofthe full data.Add more details in the AttributeError message that explains thesituation to users. This will hopefully allow them to resolve theissue.Update the FAQ in the docs to add a section discussing the issue.Closes#1138
760beb4 to1839c9eCompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
A commonly reported issue from users on Gitter is that they get an
AttributeError for an attribute that should be present. This is often
caused due to the fact that they used the
list()method to retrievethe object and objects retrieved this way often only have a subset of
the full data.
Add more details in the AttributeError message that explains the
situation to users. This will hopefully allow them to resolve the
issue.
Closes#1138