Skip to content
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

[1/4] Add support for WebDX Groups, Feature-Group Mappings & Group Descendants #594

Merged
merged 1 commit into from
Aug 17, 2024

Commits on Aug 17, 2024

  1. Add support for WebDX Groups, Feature-Group Mappings & Group Descendants

    **Description:**
    
    This PR introduces the foundational schema and data access layer for managing WebDX Groups and their associations with Web Features in Spanner.
    
    **Key Changes**
    
    * **Schema:**
       * Created the `WebDXGroups` table to store group metadata.
       * Created the `WebFeatureGroups` table to map web features to their associated groups.
       * Created the `WebDXGroupDescendants` to include the descendant group IDs for efficient querying
    
    * **Data Access Layer:**
       * Implemented `UpsertGroup` and `GetGroupIDFromGroupKey` methods in the `Client` struct to interact with the `WebDXGroups` table.
       * Implemented `UpsertWebFeatureGroup` to manage feature-group mappings in the `WebFeatureGroups` table.
       * Implemeneted `UpsertGroupDescendantInfo` to manage mappings of groups to all descendant groups.
       * Introduced helper structs and mappers (`WebFeatureGroup`, `groupSpannerMapper`, etc.) to facilitate data mapping and persistence.
    
    **Purpose**
    
    * Enables storing and retrieving information about WebDX Groups and their relationships with Web Features.
    * Lays the groundwork for future features that rely on group-based organization and filtering.
    * Optimizes queries for features associated with a group and its descendants by pre-calculating and storing descendant group IDs.
      * This is useful because if a user queries for a group, it should return the features belonging to children groups too.
    jcscottiii committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    2cef527 View commit details
    Browse the repository at this point in the history