sandsower
sandsower
NNovu
Created by sandsower on 12/2/2024 in #💬│support
Multiple feed identifiers subscription
my understanding is that it should return both, right? since you can only assign each workflow to a specific feed, so no way to send a single workflow to both feeds
13 replies
NNovu
Created by sandsower on 12/2/2024 in #💬│support
Multiple feed identifiers subscription
and the feed office has more than 10 elements, none are returned either
13 replies
NNovu
Created by sandsower on 12/2/2024 in #💬│support
Multiple feed identifiers subscription
no messages there though, just the feed
13 replies
NNovu
Created by sandsower on 12/2/2024 in #💬│support
Multiple feed identifiers subscription
yes
13 replies
NNovu
Created by sandsower on 12/2/2024 in #💬│support
Multiple feed identifiers subscription
13 replies
NNovu
Created by sandsower on 12/2/2024 in #💬│support
Multiple feed identifiers subscription
I get a 204: No Content
13 replies
NNovu
Created by sandsower on 12/2/2024 in #💬│support
Multiple feed identifiers subscription
if I assign just the feedId or "all" instead of an array I do get the messages
13 replies
NNovu
Created by sandsower on 12/2/2024 in #💬│support
Multiple feed identifiers subscription
unsubscribe = headlessService.fetchNotifications({
listener: (l) => {
// Handle the listener here if needed
setLoading(l.isLoading);
},
onSuccess: (response) => {
// Handle the fetched notifications here.
setLoading(false);
setNotifications((prev) => ({
...prev,
[response.page]: response.data,
}));
setHasMore(response.hasMore); // Set hasMore state to indicate if there are more notifications to fetch
setPageNum(response.page); // Set the page number to the current page
setUnseen(response.data.filter((x) => !x.seen).length); // Set the unseen count
},
onError: (error) => {
console.error("Error fetching notifications:", error);
// Implement error handling if needed
unsubscribe && unsubscribe();
},
page: pageNum, // page number to be fetched
query: {
feedIdentifier: [feedId, "all"], // <------------ This is where the issue is
},
});
unsubscribe = headlessService.fetchNotifications({
listener: (l) => {
// Handle the listener here if needed
setLoading(l.isLoading);
},
onSuccess: (response) => {
// Handle the fetched notifications here.
setLoading(false);
setNotifications((prev) => ({
...prev,
[response.page]: response.data,
}));
setHasMore(response.hasMore); // Set hasMore state to indicate if there are more notifications to fetch
setPageNum(response.page); // Set the page number to the current page
setUnseen(response.data.filter((x) => !x.seen).length); // Set the unseen count
},
onError: (error) => {
console.error("Error fetching notifications:", error);
// Implement error handling if needed
unsubscribe && unsubscribe();
},
page: pageNum, // page number to be fetched
query: {
feedIdentifier: [feedId, "all"], // <------------ This is where the issue is
},
});
13 replies
NNovu
Created by sandsower on 5/2/2024 in #💬│support
Consuming digest in headless lib
I'm looking for a way to get the size of the digest in the payload, if there is any. Getting all digested event payloads could also work as I could just get the length
11 replies
NNovu
Created by sandsower on 5/2/2024 in #💬│support
Consuming digest in headless lib
Yeah I saw that reference but I couldn't find a way to consume the digest size, I need it in our app
11 replies
NNovu
Created by sandsower on 5/2/2024 in #💬│support
Handlebars not working on redirecturl field
The cta url depends on if there is a digest or not
8 replies
NNovu
Created by sandsower on 3/27/2024 in #💬│support
Testing provider locally
If there's something I'd need to change let me know
25 replies
NNovu
Created by sandsower on 3/27/2024 in #💬│support
Testing provider locally
Can I get another review for this one? I've fixed some conflicts
25 replies
NNovu
Created by sandsower on 3/27/2024 in #💬│support
Testing provider locally
I've updated the PR based on the comments and fixed the lockfiles, ready for another review pass 🙂
25 replies
NNovu
Created by sandsower on 3/27/2024 in #💬│support
Testing provider locally
Thank you for the prompt answer! I saw there were some merge conflicts, I've resolved them now
25 replies
NNovu
Created by sandsower on 3/27/2024 in #💬│support
Testing provider locally
Hi, I pushed the code for this provider 3 weeks ago and it still hasn't been reviewed
25 replies
NNovu
Created by sandsower on 4/5/2024 in #💬│support
headless fetchNotifications() overfetches on multiple calls
I've actually managed to solve it, my misunderstanding was that each call to fetchNotifications opened up a new listener when I thought the previous one would automatically close. I'm now just handling the unread only option with a simple filter after the initial fetch.
8 replies
NNovu
Created by sandsower on 3/27/2024 in #💬│support
Testing provider locally
Out of curiosity how long do reviews for new providers usually take? I see that it hasn't been looked at yet
25 replies
NNovu
Created by sandsower on 3/27/2024 in #💬│support
Testing provider locally
No worries, I managed to solve my local setup issues (I wasn't using jarvis, running it through there solved my issues) and pushed a PR with the changes 🙂
25 replies
NNovu
Created by sandsower on 3/27/2024 in #💬│support
Moving from Cloud to self-host
Is there any rate-limit that we should be aware of when using the API endpoints @Ask Inkeep ?
10 replies