-
Notifications
You must be signed in to change notification settings - Fork 203
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
Fixes #2507 - Display needsinfo requests in user activity page #2544
Conversation
Actually... maybe @karlcow can review the python bits before he goes on PTO. |
(and then I'll ping someone else for review on functional tests and JS) |
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.
OK let's see http://localhost:5000/activity/karlcow
This is working well. 👍
- Remove the print statement
- and I'll leave it up to you for the format string which is basically not part of this pull request but the previous coding.
webcompat/api/endpoints.py
Outdated
path = 'repos/{path}'.format(path=ISSUES_PATH) | ||
print(path, params) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
webcompat/api/endpoints.py
Outdated
if parameter == 'needsinfo': | ||
params['labels'] = 'status-needsinfo-{0}'.format(username) | ||
else: | ||
params['{0}'.format(parameter)] = '{0}'.format(username) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Travis tests have failedHey @miketaylr, 1st Buildnosetests
sleep 5
npm run test:js -- --reporters="runner" --firefoxBinary=`which firefox`
|
OK, python nits addressed. r? @magsout for non-python review parts. |
@miketaylr it's on my todo list. Lot of working travel ;) |
@miketaylr goog job. Just few question about UX. There is 3 section in this page, so 3 paginations. But whatever the pagination you're clicking every section is updated. It looks weird, nah, what do you think? |
Yeah, that feels like a bug.
Yeah, good idea! |
In theory, the current behavior is to add a "is-disabled" class. This seems to work on the issue list page, but no here. So, some bug somewhere. If I can find it, let's fix that then open a follow up bug to swap "is-disabled" with "is-hidden" (or something like that). |
Hey, it turns out that's our default behavior. :p Been a long time since I've looked at this code. The bug was that all the shared stuff was trying to paginate on the "my issues" stuff. I've made sure it operates on the correct instance instead. r? @magsout |
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.
r+ @miketaylr 👍
This PR fixes issue #2507
Proposed PR background
Just adding another section to the activity page, showing needsinfo requests.
Need to add some functional tests before I request review.