Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis Module: Implement Analysis Mutation to setup a new analysis #1516

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

sauravsapkota
Copy link
Contributor

@sauravsapkota sauravsapkota commented Jul 24, 2024

Addresses

Changes

Convert REST API for Analysis CRUD to GraphQL mutation

This PR doesn't introduce any:

  • temporary files, auto-generated files or secret keys
  • n+1 queries
  • flake8 issues
  • print
  • typos
  • unwanted comments

This PR contains valid:

  • tests
  • permission checks (tests here too)
  • translations

@sauravsapkota sauravsapkota force-pushed the feature/add-mutation-for-analysis branch from bbcda71 to 12ce2e0 Compare July 24, 2024 09:55
@sauravsapkota sauravsapkota changed the title WIP: Convert REST API for Analysis creation to GraphQL mutation WIP: Convert REST API for Analysis CRUD to GraphQL mutation Jul 24, 2024
apps/analysis/mutation.py Outdated Show resolved Hide resolved
apps/analysis/mutation.py Outdated Show resolved Hide resolved
@sauravsapkota sauravsapkota force-pushed the feature/add-mutation-for-analysis branch 2 times, most recently from 752e009 to b3ea86f Compare July 25, 2024 06:34
@sauravsapkota sauravsapkota changed the title WIP: Convert REST API for Analysis CRUD to GraphQL mutation Convert REST API for Analysis CRUD to GraphQL mutation Jul 25, 2024
@sauravsapkota sauravsapkota requested a review from sudan45 July 25, 2024 12:04
@sauravsapkota sauravsapkota marked this pull request as ready for review July 25, 2024 12:04
@sauravsapkota sauravsapkota changed the title Convert REST API for Analysis CRUD to GraphQL mutation Analysis Module: Implement Analysis Mutation to setup a new analysis Jul 26, 2024
apps/analysis/mutation.py Outdated Show resolved Hide resolved
apps/analysis/mutation.py Outdated Show resolved Hide resolved
apps/analysis/mutation.py Outdated Show resolved Hide resolved
Copy link
Member

@susilnem susilnem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's verify.

apps/analysis/mutation.py Show resolved Hide resolved
apps/analysis/mutation.py Outdated Show resolved Hide resolved
apps/analysis/serializers.py Show resolved Hide resolved
@sauravsapkota sauravsapkota force-pushed the feature/add-mutation-for-analysis branch from db630f4 to d68451c Compare July 29, 2024 11:46
@sauravsapkota sauravsapkota changed the title Analysis Module: Implement Analysis Mutation to setup a new analysis WIP: Analysis Module: Implement Analysis Mutation to setup a new analysis Jul 30, 2024
@sauravsapkota sauravsapkota force-pushed the feature/add-mutation-for-analysis branch from d68451c to b505c2c Compare July 30, 2024 06:46
@sauravsapkota sauravsapkota changed the title WIP: Analysis Module: Implement Analysis Mutation to setup a new analysis Analysis Module: Implement Analysis Mutation to setup a new analysis Jul 30, 2024
@sauravsapkota sauravsapkota force-pushed the feature/add-mutation-for-analysis branch from b505c2c to 2f66047 Compare July 30, 2024 11:53
apps/analysis/serializers.py Outdated Show resolved Hide resolved
apps/analysis/serializers.py Outdated Show resolved Hide resolved
schema.graphql Show resolved Hide resolved
apps/analysis/tests/test_mutations.py Show resolved Hide resolved
apps/analysis/tests/test_mutations.py Outdated Show resolved Hide resolved
@sauravsapkota sauravsapkota force-pushed the feature/add-mutation-for-analysis branch from 2f66047 to 682f97e Compare July 31, 2024 08:03
@sauravsapkota sauravsapkota requested a review from thenav56 July 31, 2024 08:20
Copy link
Member

@thenav56 thenav56 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost done

apps/analysis/tests/test_mutations.py Show resolved Hide resolved
apps/analysis/tests/test_mutations.py Outdated Show resolved Hide resolved
apps/analysis/tests/test_mutations.py Outdated Show resolved Hide resolved
apps/analysis/tests/test_mutations.py Outdated Show resolved Hide resolved
Copy link
Member

@susilnem susilnem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changes

apps/analysis/tests/test_mutations.py Show resolved Hide resolved
apps/analysis/tests/test_mutations.py Outdated Show resolved Hide resolved
@sauravsapkota sauravsapkota force-pushed the feature/add-mutation-for-analysis branch 2 times, most recently from 05d71a4 to cf8a770 Compare August 16, 2024 11:22
apps/analysis/serializers.py Outdated Show resolved Hide resolved
apps/analysis/serializers.py Show resolved Hide resolved
@thenav56 thenav56 force-pushed the feature/add-mutation-for-analysis branch from cf8a770 to 56f7199 Compare August 22, 2024 05:13
@sudan45 sudan45 force-pushed the feature/add-mutation-for-analysis branch from 56f7199 to 9ec96c9 Compare October 1, 2024 09:21
@AdityaKhatri AdityaKhatri force-pushed the feature/add-mutation-for-analysis branch from 9ec96c9 to 355a5f5 Compare October 16, 2024 09:45
@sudan45 sudan45 force-pushed the feature/add-mutation-for-analysis branch 2 times, most recently from e8a506e to 49a7bc8 Compare October 18, 2024 09:15
@AdityaKhatri AdityaKhatri force-pushed the feature/add-mutation-for-analysis branch from cb86e92 to a5f03bb Compare November 7, 2024 04:12
@sudan45 sudan45 force-pushed the feature/add-mutation-for-analysis branch from fd94b93 to f1fa1aa Compare November 19, 2024 05:50
Copy link
Contributor

@Rup-Narayan-Rajbanshi Rup-Narayan-Rajbanshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Rename analyis field into analysis_id

Add test cases for Analysis Mutation

Change filter genericscalartype into filtertype

Change filter genericscalartype into filtertype

Remove required False in analyisis pillar analyis

Add analysis pillar delete mutation

Refactor

add return when pillar is not None
@sudan45 sudan45 force-pushed the feature/add-mutation-for-analysis branch from 2ed3854 to e1c5c81 Compare November 19, 2024 06:21
@AdityaKhatri AdityaKhatri merged commit 8c1c56b into develop Nov 22, 2024
9 checks passed
@AdityaKhatri AdityaKhatri deleted the feature/add-mutation-for-analysis branch November 22, 2024 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants