Skip to content

Better logging of token permission issues #67

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 7 commits into from
Jul 9, 2025

Conversation

nonprofittechy
Copy link
Member

When user feedback is attempted, have a better log message for feedback.

Also cleaned up label authoring and fixed a bug when feedback was caught as likely spam.

label_data = {
"name": label,
"description": "Feedback from a Docassemble Interview",
"color": "002E60",
}
make_label_resp = requests.post(
labels_url, data=json.dumps(label_data), headers=headers
labels_url.rsplit("/", 1)[0], # POST to /labels (collection)
Copy link
Contributor

@BryceStevenWilley BryceStevenWilley Jul 8, 2025

Choose a reason for hiding this comment

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

Not a huge fan of splitting the URL like this. I'm fine with just having two variables (one for labels_url and one for single_label_url above if you don't want to add to the url like it was.

Copy link
Contributor

@BryceStevenWilley BryceStevenWilley left a comment

Choose a reason for hiding this comment

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

I'm in support of improving logs, but have a few questions before we merge.

fixed a bug when feedback was caught as likely spam.

I didn't see this? The log message changed, but nothing here would affect the behavior, right?

@nonprofittechy
Copy link
Member Author

I'm in support of improving logs, but have a few questions before we merge.

fixed a bug when feedback was caught as likely spam.

I didn't see this? The log message changed, but nothing here would affect the behavior, right?

Yes, in the event it is flagged as spam, there was a Python error (a,b = None should have been a = b = None)

Copy link
Contributor

@BryceStevenWilley BryceStevenWilley left a comment

Choose a reason for hiding this comment

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

LGTM!

@nonprofittechy nonprofittechy merged commit 7f69691 into main Jul 9, 2025
4 checks passed
@nonprofittechy nonprofittechy deleted the user-feedback-label branch July 9, 2025 15:05
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