Feed and Tags in local Studio

Hello! We want to use Local Studio but didn't find how we can set feedId for each workflow and scope of tags because it's require for our functionality
22 Replies
Pawan Jain
Pawan Jain3mo ago
@Sasha Trytiak Currently feedId for in-app step and tags for workflows are not supported in Novu V2 We are working on adding all features similar to v1
Sasha Trytiak
Sasha Trytiak3mo ago
got it, thank a lot for the information @Pawan Jain but I still can update workflow data via novu/nodejs, right? For example create workflow in Local Studio then update fields that I need via novu/nodejs
Pawan Jain
Pawan Jain3mo ago
I would not recommend you to update the v2 workflow using node SDK as it can disturb the workflow state and it might throw unexpected errors
Sasha Trytiak
Sasha Trytiak3mo ago
How would you recommend to fix the issue? Should we make the changes by hand, after syncing to Cloud?
Dima Grossman
Dima Grossman3mo ago
@Sasha Trytiak feed and tags support should land around next week. Including a new and improved Inbox component
Sasha Trytiak
Sasha Trytiak3mo ago
great, then we will wait, thank you a lot for help @Dima Grossman Hi! Sorry to trouble ☺️ Wanted to clarify approx time when this features will release because we should plan our work. Thank you a lot in advance for the answer ❤️
Novu_Bot
Novu_Bot3mo ago
@Sasha Trytiak, you just advanced to level 2!
Pawan Jain
Pawan Jain3mo ago
@Sasha Trytiak We have launched new Inbox component recently https://docs.novu.co/inbox/introduction Let me check with team on how to configure feedIds and tags
Pawan Jain
Pawan Jain3mo ago
@Sasha Trytiak We added tags support with workflows https://docs.novu.co/sdks/framework/typescript/workflow
Sasha Trytiak
Sasha Trytiak3mo ago
great news! thank you a lot
Pawan Jain
Pawan Jain3mo ago
No description
Pawan Jain
Pawan Jain3mo ago
These workflow tags can be used as values of tabs https://docs.novu.co/inbox/react/multiple-tabs
Pawan Jain
Pawan Jain3mo ago
No description
Sasha Trytiak
Sasha Trytiak3mo ago
Hi! In react-native we cannot use Inbox component for rendering tabs so we have out custom component for that. We have to filtering notifications by tags only from frontend side, right? Doesn't Novu have logic for BE filtering as for feeds? @Pawan Jain main goal of my question to understand how I should implement pagination using tags instead Feeds in case where we cannot use Inbox component. Thank you in advance for the answer 😌
Pawan Jain
Pawan Jain3mo ago
@Sasha Trytiak Are you using our apis directly to build custom component?
Sasha Trytiak
Sasha Trytiak3mo ago
Yes, we created small BE project based on novu/node and use custom endpoints for data from mobile side
Pawan Jain
Pawan Jain3mo ago
@Sasha Trytiak We added Inbox api that has support of filter by tags https://github.com/novuhq/novu/blob/fix/sort-order-get-messages/apps/api/src/app/inbox/inbox.controller.ts#L63 But currently these apis can not be consumed using SECRET_KEY.
Yes, we created small BE project based on novu/node and use custom endpoints for data from mobile side
Do you consume these APIs using SECRET_KEY (previously API_KEY) or using SUBSCRIBER_JWT token
Sasha Trytiak
Sasha Trytiak3mo ago
We use SECRET_KEY. Didn't find approach with SUBSCRIBER_JWT . Can we use filtering by tags API if will use SUBSCRIBER_JWT ?
Pawan Jain
Pawan Jain3mo ago
Yes this api can be used with SUBSCRIBER_JWT Call this API to generate SUBSCRIBER_JWT token
curl -L -X POST 'https://api.novu.co/v1/inbox/session' \
-H 'Content-Type: application/json' \
-d '{
"subscriberId": "<SUBSCRIBER_ID>",
"applicationIdentifier": "APPLICATION_IDENTIFIER"
}'
curl -L -X POST 'https://api.novu.co/v1/inbox/session' \
-H 'Content-Type: application/json' \
-d '{
"subscriberId": "<SUBSCRIBER_ID>",
"applicationIdentifier": "APPLICATION_IDENTIFIER"
}'
this will return token in response Use that token as Authorization header
curl -L -X GET 'https://api.novu.co/v1/inbox/notifications?tags[]=tag1&tags[]=tag2' \
-H 'Authorization: Bearer <TOKEN_FROM_ABOVE_API>'
curl -L -X GET 'https://api.novu.co/v1/inbox/notifications?tags[]=tag1&tags[]=tag2' \
-H 'Authorization: Bearer <TOKEN_FROM_ABOVE_API>'
Sasha Trytiak
Sasha Trytiak3mo ago
Thank you a lot for the help and explanation 😌 Is there a chance that this request with filtration by tags will be added to the default API?
Pawan Jain
Pawan Jain3mo ago
@Sasha Trytiak Currently, it is not supported in the publicly accessible apis with SECRET_KEY. Let me share this with team to take a look
Want results from more Discord servers?
Add your server