-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Milestone
Description
Thanks to #438 I'm noticing that when you select a specific data set it doesn't check your metadata matches. It only checks that withCDN matches. We need to figure out the strategy here and it's a little bit tricky.
In resolveByProviderId we do a metadataMatches using requestedMetadata. But in that case you're fishing for a matching data set, in the resolveByDataSetId case you've already explicitly selected one, so is it the SDK's business to be checking that it matches the metadata you requested. Currently we do some checking, withCDN must match the data set. So we're doing a half-way job, which isn't good. I think we should either go further, or do nothing:
Options:
- Strictly require that
requestedMetadatamatches the data set and error if not (this value is made inresolveProviderAndDataSetand could just be moved up to before the call toresolveByDataSetId). - Only require that meta data matches if you provide some in your options - including
withCDNbeing set. IfwithCDN&&metadataare bothundefinedthen perform no checks. - Perform no checks at all, including
withCDN.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🐱 Todo