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

Support rewards challenge fields #1636

Merged
merged 9 commits into from
Jul 14, 2021
Merged

Conversation

raymondjacobson
Copy link
Member

Description

What is the purpose of this PR? What is the current behavior? New behavior? Relevant links (e.g. Trello) and/or information pertaining to PR?

Add UserEvents table in discovery node to support indexing event fields off of user metadata.
Add support for two events, referrer and is_mobile_user to support rewards challenge types.

Tests

List the manual tests and repro instructions to verify that this PR works as anticipated. Include log analysis if possible.
❗ If this change impacts clients, make sure that you have tested the clients ❗

  1. Unit test for indexing flow
  2. Manually created account and forced referrer and is_mobile_user field updates
    ...

❗ Reminder 💡❗:
If this PR touches a critical flow (such as Indexing, Uploads, Gateway or the Filesystem), make sure to add the requires-special-attention label. Add relevant labels as necessary.

How will this change be monitored?

For features that are critical or could fail silently please describe the monitoring/alerting being added.

No immediate API impact, block diff on indexing would be the only thing to take note of as this gets released

@raymondjacobson raymondjacobson changed the title Rj rewards challenge fields Support rewards challenge fields Jul 12, 2021
jowlee
jowlee previously approved these changes Jul 13, 2021
piazzatron
piazzatron previously approved these changes Jul 13, 2021
Copy link
Contributor

@piazzatron piazzatron left a comment

Choose a reason for hiding this comment

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

LGTM

discovery-provider/src/tasks/index.py Outdated Show resolved Hide resolved
@raymondjacobson
Copy link
Member Author

@piazzatron PTAL again when you've got a sec since I touched some challenges stuff

14d0321
and
e27ea20

being the only two commits of interest

@raymondjacobson raymondjacobson merged commit aeacb96 into master Jul 14, 2021
@raymondjacobson raymondjacobson deleted the rj-rewards-challenge-fields branch July 14, 2021 22:17
dmanjunath added a commit that referenced this pull request Jul 15, 2021
Bugfix

Discovery undisbursed endpoint for rewards (#1642)

* Add undisbursed challenges endpoint

* Fix lint in discovery

* Add undisbursed endpoint route

* Fix limit and endpoint name

* Addressed comments

* Fix lint

* Rebase changes

* Update discovery test around fixture

* Pass through arg

* Address comments

* Remove unused imports lint

Support rewards challenge fields (#1636)

* Support UserEvents in discovery indexing

* Support referrer and is_mobile_user in libs

* Add events to tasks metadata

* Address comments

* Fix misc type issues

* Remove unused imports

* Fix get_attestation type bug

* Fix lint

* Update down revision

Debugging

Debugging

Circle config update

config

Debug

Debug

Debug

Consolidate some logic

Consolidate some logic

Final cleanup + polish
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.

None yet

3 participants