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

Orion notifications demo #154

Closed

Conversation

ignazio-bovo
Copy link
Contributor

@ignazio-bovo ignazio-bovo commented Jul 3, 2023

Unfinished work.
Contains all the relevant code for the orion_notification poc.
in particular I have left some useful queries in src/authentication-tests/integration-tests/util.sh

reference #153

ignazio-bovo and others added 30 commits April 21, 2023 09:34
* endingAuctionsNfts query

* lint

* CR fixes: removed archive, modified query, minor fixes

* returned completion check

---------

Co-authored-by: Artem <Artem Slugin>
Co-authored-by: Leszek Wiesner <leszek@jsgenesis.com>
* top selling channels initial draft

* introduced node-cache for in-memory caching

* CR fixes: updated cache key, minor code fix

* upgraded performance schema

Co-authored-by: Leszek Wiesner <leszek@jsgenesis.com>

* restored env variables

* removed cache, introduced 0 periodDays option

* fixed infinite period query

Co-authored-by: Leszek Wiesner <leszek@jsgenesis.com>

* removed unused binary files

---------

Co-authored-by: Artem <Artem Slugin>
Co-authored-by: Leszek Wiesner <leszek@jsgenesis.com>
* Introduce new video property and scheduler to update it

* Adjust equation and change score to float

* Schedule updates in required places

* Add mutation to change video weights

* Adjust env weights

* Fix for newness weight on creation

* CR fixes

* CR fixes v2

* Update src/mappings/content/video.ts

* Update src/mappings/content/video.ts

---------

Co-authored-by: Leszek Wiesner <leszek@jsgenesis.com>
@attemka attemka self-requested a review July 5, 2023 07:46
@@ -0,0 +1 @@
../uuid/dist/bin/uuid
Copy link
Contributor

Choose a reason for hiding this comment

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

whole node_modules folder should be excluded in .gitignore

@Mutation(() => Boolean)
@UseMiddleware(AccountOnly)
async markOffChainNotificationAsRead(
@Args() { notificationId }: NotificationArgs,
Copy link
Contributor

Choose a reason for hiding this comment

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

we should also consider an option for passing multiple IDs for the "read all" function

import { MailNotifier } from './mail'

export type NotificationPreferences = {
commentCreatedInAppNotificationEnabled: boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

codestyle thing: usually when you'll have such large lists, its better to sort the keys in the alphabet order. There's even a prettier\eslint rule of it somewhere, but I think it doesn't worth to include it, lets just sort this one for better readability

@ignazio-bovo
Copy link
Contributor Author

closing in favour of #156

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.

5 participants