-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Filter by groups and snapshots #299
Labels
Comments
jcscottiii
added
enhancement
New feature or request
go
Pull requests that update Go code
blocked:upstream-data
Blocked on correcting or adding upstream data
labels
May 23, 2024
jcscottiii
removed
the
blocked:upstream-data
Blocked on correcting or adding upstream data
label
Jul 10, 2024
This data is now available with web-platform-dx/web-features#1060 |
jcscottiii
added a commit
that referenced
this issue
Aug 16, 2024
**Description:** This PR introduces the foundational schema and data access layer for managing WebDX Snapshots and their associations with Web Features in Spanner. This is the second half of #299 to support only the snapshot storage and filtering. **Note**: Unlike groups, snapshots do not have any hiearchy. So it is a little simpler. **Key Changes** * **Schema:** * Created the `WebDXSanpshots` table to store snapshot metadata. * Created the `WebFeatureSanpshots` table to map web features to their associated snapshots. * **Data Access Layer:** * Implemented `UpsertSnapshot` and `GetSnapshotIDFromSnapshotKey` methods in the `Client` struct to interact with the `WebDXSnapshots` table. * Implemented `UpsertWebFeatureSnapshot` to manage feature-snapshot mappings in the `WebFeatureSnapshots` table. * Introduced helper structs and mappers (`WebFeatureSnapshot`, `snapshotSpannerMapper`, etc.) to facilitate data mapping and persistence. **Purpose** * Enables storing and retrieving information about WebDX Snapshots and their relationships with Web Features. * Lays the groundwork for future features that rely on snapshot-based storage and filtering.
jcscottiii
added a commit
that referenced
this issue
Aug 17, 2024
**Description:** This PR introduces the foundational schema and data access layer for managing WebDX Snapshots and their associations with Web Features in Spanner. This is the second half of #299 to support only the snapshot storage and filtering. **Note**: Unlike groups, snapshots do not have any hiearchy. So it is a little simpler. **Key Changes** * **Schema:** * Created the `WebDXSanpshots` table to store snapshot metadata. * Created the `WebFeatureSanpshots` table to map web features to their associated snapshots. * **Data Access Layer:** * Implemented `UpsertSnapshot` and `GetSnapshotIDFromSnapshotKey` methods in the `Client` struct to interact with the `WebDXSnapshots` table. * Implemented `UpsertWebFeatureSnapshot` to manage feature-snapshot mappings in the `WebFeatureSnapshots` table. * Introduced helper structs and mappers (`WebFeatureSnapshot`, `snapshotSpannerMapper`, etc.) to facilitate data mapping and persistence. **Purpose** * Enables storing and retrieving information about WebDX Snapshots and their relationships with Web Features. * Lays the groundwork for future features that rely on snapshot-based storage and filtering.
github-merge-queue bot
pushed a commit
that referenced
this issue
Aug 17, 2024
**Description:** This PR introduces the foundational schema and data access layer for managing WebDX Snapshots and their associations with Web Features in Spanner. This is the second half of #299 to support only the snapshot storage and filtering. **Note**: Unlike groups, snapshots do not have any hiearchy. So it is a little simpler. **Key Changes** * **Schema:** * Created the `WebDXSanpshots` table to store snapshot metadata. * Created the `WebFeatureSanpshots` table to map web features to their associated snapshots. * **Data Access Layer:** * Implemented `UpsertSnapshot` and `GetSnapshotIDFromSnapshotKey` methods in the `Client` struct to interact with the `WebDXSnapshots` table. * Implemented `UpsertWebFeatureSnapshot` to manage feature-snapshot mappings in the `WebFeatureSnapshots` table. * Introduced helper structs and mappers (`WebFeatureSnapshot`, `snapshotSpannerMapper`, etc.) to facilitate data mapping and persistence. **Purpose** * Enables storing and retrieving information about WebDX Snapshots and their relationships with Web Features. * Lays the groundwork for future features that rely on snapshot-based storage and filtering.
This was
linked to
pull requests
Aug 19, 2024
Filtering by groups and snapshot works if the user types the query directly. The work to add it to the autocomplete will be in this separate issue |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
After web-platform-dx/web-features#1060 it would be good to have these filters:
group:css
to list all features that are directly or indirectly part of the CSS group. Since a feature can be part of multiple groups, the simplest way to implement this is probably to generate a list of groups per feature by walking the group parent chain. Then there's no need for the search feature to understand the hierarchy.snapshot:ecmascript-2015
to list all features in ECMAScript 2015. There's no hierarchy here.This would address some use cases in #276.
cc @hvanops
The text was updated successfully, but these errors were encountered: