yazdipour / OmnivoreQL

@Omnivore-app API client for Python
https://pypi.org/project/omnivoreql/
MIT License
69 stars 6 forks source link

Feature/support label modification #20

Closed yazdipour closed 5 months ago

yazdipour commented 5 months ago

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.

sourcery-ai[bot] commented 5 months ago

Reviewer's Guide by Sourcery

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.

File-Level Changes

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.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://sourcery.ai/dashboard): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.