Closed yazdipour closed 5 months ago
This pull request introduces support for label modification and refactors the existing code to use preloaded GraphQL queries. It adds new methods for creating, updating, and deleting labels, and includes comprehensive tests for these new functionalities. Additionally, it organizes GraphQL queries into separate files for better maintainability.
Files | Changes |
---|---|
omnivoreql/queries/Search.graphql omnivoreql/queries/ArticleContent.graphql omnivoreql/queries/UpdatesSince.graphql omnivoreql/queries/MergeHighlight.graphql omnivoreql/queries/GetSubscriptions.graphql omnivoreql/queries/ApplyLabels.graphql omnivoreql/queries/Labels.graphql omnivoreql/queries/CreateLabel.graphql omnivoreql/queries/DeleteLabel.graphql omnivoreql/queries/UpdateLabel.graphql omnivoreql/queries/TypeAheadSearch.graphql omnivoreql/queries/UpdatePage.graphql omnivoreql/queries/ReadingProgressMutation.graphql omnivoreql/queries/Viewer.graphql omnivoreql/queries/CreateHighlight.graphql omnivoreql/queries/UpdateHighlight.graphql omnivoreql/queries/ArchiveSavedItem.graphql omnivoreql/queries/DeleteHighlight.graphql omnivoreql/queries/DeleteSavedItem.graphql omnivoreql/queries/SavePage.graphql omnivoreql/queries/SaveUrl.graphql omnivoreql/queries/ValidateUsername.graphql |
Added new GraphQL queries and mutations for various operations including search, article content, updates, highlights, subscriptions, labels, and user profile. |
Closes #16
ℹ Additional Information
Summary by Sourcery
This pull request introduces label management features, allowing for the creation, updating, and deletion of labels. It also refactors the OmnivoreQL class to load GraphQL queries from external files, enhancing query management and maintainability. Corresponding unit tests have been added to ensure the new functionalities work as expected.