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

New CRT marketplace query #336

Merged
merged 32 commits into from
Jul 19, 2024

Conversation

ikprk
Copy link
Contributor

@ikprk ikprk commented Jun 11, 2024

No description provided.

@ikprk ikprk requested a review from zeeshanakram3 June 11, 2024 20:17
Copy link
Contributor

@zeeshanakram3 zeeshanakram3 left a comment

Choose a reason for hiding this comment

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

Please run npm run generate:docs:auth-api auth API docs

db/migrations/1719855101957-Views.js Outdated Show resolved Hide resolved
src/auth-server/handlers/registerUserInteraction.ts Outdated Show resolved Hide resolved
src/auth-server/handlers/registerUserInteraction.ts Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

The implementation looks good, would it be possible for you to add unit test for this handler in src/auth-server/tests?

src/auth-server/handlers/registerUserInteraction.ts Outdated Show resolved Hide resolved
src/server-extension/resolvers/CreatorToken/types.ts Outdated Show resolved Hide resolved
src/server-extension/resolvers/CreatorToken/index.ts Outdated Show resolved Hide resolved
schema/token.graphql Outdated Show resolved Hide resolved
src/server-extension/resolvers/CreatorToken/index.ts Outdated Show resolved Hide resolved
src/server-extension/resolvers/CreatorToken/index.ts Outdated Show resolved Hide resolved

let listQuerySql = listQuery.sql

listQuerySql = listQuerySql.replace(/marketplace_token/g, 'marketplace_tokens')
Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be required any longer?

@zeeshanakram3 zeeshanakram3 merged commit 84eeb43 into Joystream:master Jul 19, 2024
7 checks passed
malchililj pushed a commit to malchililj/orion that referenced this pull request Sep 3, 2024
* New query

* New query for top selling channels

* Add materialized view into view migrations

* Fix build

* Add new migration

* Adjust migration and resolver

* Small fixes

* Make creator token just a view

* Fix divison by zero

* Correct hot and cold tokens

* Make field more generic and increase the period

* Major view query rework

* Make initial price on amm start correct

* Rework resolver extensions

* Add new db table

* Add new handler for the auth server to record interactions

* Add resolver to get most interacted entities for given type

* Introduce limiting for custom resolvers

* Fix token price change resolver

* Fix marketplace token view definition

* Introduce user based rate limiting per type and entity

* CR fixes

* Add tests for user interactions endpoint

* Fix build

* Fix resolver for most interacted entity

* fix: db views generation

* debug log

* undo: debug log

* regenerate auth api docs

* change view name from 'marketplace_tokens' to 'marketplace_token'

* fix: lint issue

---------

Co-authored-by: Zeeshan Akram <97m.zeeshan@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.

2 participants