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

Publish re-ad messages on the additions feed #85

Merged
merged 3 commits into from
Apr 6, 2023
Merged

Conversation

Powersource
Copy link
Collaborator

@Powersource Powersource commented Apr 5, 2023

for #79 Hopefully fixes it, but we need to verify in #78

tests were passing before the first commit

@Powersource Powersource marked this pull request as ready for review April 5, 2023 12:37
@Powersource Powersource requested review from staltz, arj03 and mixmix April 5, 2023 12:37
@arj03 arj03 changed the title Publish readd messages on the additions feed Publish read messages on the additions feed Apr 5, 2023
@Powersource
Copy link
Collaborator Author

Powersource commented Apr 5, 2023

@arj03 no it's re-add, not read :P

const excludeOpts = {
tangles: ['members'],
isValid: isExclude,
}
Copy link
Member

Choose a reason for hiding this comment

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

I think we need to think about where we want the exclude published... (which feed).
I have a feeling it should be in the same feed as the additions... but I can't quite justify.
I think it's that we want to be sure we have all the messages for each epoch membership stuff and sprinkling the around might lead to funny edge cases?

what do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i don't mind having it in the epochs. the main purpose of the additions feed is that people who are not in a group know where to look for stuff that is DMed to them

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ideally i want re-additions also in the epochs, i think we're mostly moving them to the additions for lack of time

const msgsFromAdditions = await alice.db.query(
where(author(aliceAdditions.id)),
toPromise()
)
Copy link
Member

Choose a reason for hiding this comment

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

🍍 it's cool seeing different ways of querying around the space + testing. I would have got a different way but this is tidy (looking within a particular sub-feed).
db.query is so sweet

Copy link
Member

@mixmix mixmix left a comment

Choose a reason for hiding this comment

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

have a question about where exclusions should be published, but that can be explored later. Lets just keep an eye on it aye

@staltz staltz changed the title Publish read messages on the additions feed Publish re-ad messages on the additions feed Apr 6, 2023
@Powersource Powersource merged commit 9a47576 into master Apr 6, 2023
@Powersource Powersource deleted the readd-additions branch April 6, 2023 08:03
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