-
Notifications
You must be signed in to change notification settings - Fork 246
Bug 1955390 - Fix downloading and reading of attachments from remote settings dumps, and add search-config-icons dumps #6694
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
Conversation
@gruberb Something I noticed after uploading this, I'm wondering if it would be better to use the Using the |
I have no strong opinion about this. Whatever works best. Would this mean we also use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I like the consistency, thanks for fixing this!
Yeah, we'd just have random numbers, similar to this. I think my concern is that filenames do have the potential to clash - as far as I know, we don't enforce them being distinct. So we could get to the stage where there's a published collection with clashing filenames, and we don't see a problem until we try and generate the dumps. @leplatrem @bendk Any thoughts/preferences here? |
If filename is not guaranteed to be unique, then I think record_id is better. I'd defer to @leplatrem though. Another option would be some combination ( |
I will try to answer this clearly, but the way it's done on desktop was heavily driven by the addons blocklist use-case (done by Rob Wu a few years ago 🙏). In short: on Desktop, the attachment ID is "configurable", and it is ContextThe addons blocklist v3 is AFAIK the only use-case that uses the filename as the
Their collection is a bloomfilter where there is a base file, that gets completed with stashes. We would have to ask Rob if we would need details, but I think that for now we can ignore this specificity, and go with
Not all collections use randomly assigned UUIDs for record IDs, so I don't think it would be an issue! |
df697a0
to
fa9d630
Compare
Thank you everyone for the comments. I've gone with the record id, since that seems to be better for the long-run. This also simplifies the patch, undoing the changes to I'll merge this later once tests have run. |
This fixes downloading & reading of reading of attachments wrt the remote settings dumps. The example code, and the attachment reading code were using parts of the record for the file name on disk, this makes them consistent.
I have tested locally that loading the attachments from the packaging works correctly with this change.
Pull Request checklist
[ci full]
to the PR title.Branch builds: add
[firefox-android: branch-name]
to the PR title.