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

Add continuous static analysis with DeepSource #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sanketsaurav
Copy link

This PR adds a customized .deepsource.toml file for this project. Upon enabling DeepSource, static analysis will be run on every PR to detect 550+ types of issues in the changes — including bug risks, anti-patterns, performance issues, security vulnerabilities, etc.

To enable DeepSource analysis after merging this PR, please follow these steps:

  1. Sign up on DeepSource with your GitHub account and grant access to this repo.
  2. Activate analysis on this repo here.

You can also look at the docs for more details. Do let me know if I can be of any help! ✌🏼

Best,
Sanket
Founder, DeepSource

cc @aadis — referencing our conversation on Twitter.

abhijeetkaurav1st pushed a commit that referenced this pull request Oct 5, 2021
* safety checks for protection rule expiry

* safety checks for protection rule expiry while updating cache
abhijeetkaurav1st added a commit that referenced this pull request Mar 21, 2022
commit e5d97b4
Merge: a704367 36dfaf1
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Mon Nov 8 19:29:36 2021 +0530

    Merge pull request #198 from nutanix/release/3.3.0

    Changes for Calm v3.3.0

commit 36dfaf1
Merge: a704367 95bb44e
Author: abhijeetkaurav1st <[email protected]>
Date:   Mon Nov 8 14:15:09 2021 +0530

    Merge branch 'release/3.3.0' of github.com:ideadevice/calm-dsl into release/3.3.0

commit 95bb44e
Author: abhijeetkaurav1st <[email protected]>
Date:   Mon Nov 8 09:50:18 2021 +0530

    Fixing some brownfield and env fixes

commit 4797f32
Author: abhijeetkaurav1st <[email protected]>
Date:   Wed Nov 3 22:46:10 2021 +0530

    Black format

commit 3de448f
Author: abhijeetkaurav1st <[email protected]>
Date:   Wed Nov 3 22:35:31 2021 +0530

    Minor fixes regarding release-notes and some command name fixes

commit 370c975
Author: gaurav <[email protected]>
Date:   Tue Nov 2 23:35:22 2021 +0530

    App edit DSL support (#43) (#92)

    * initial commit for app edit -> parts taken from ideadevice/calm-dsl#19

    * lint fix

    * lint fix

    * lint fix

    * fixes

    * import fix

    * remove extra file

    * fix app edit dsl

    * add example

    * test

    * bring in some structure

    * del

    * remove extra

    * fixed example

    * revert extra changes

    * fixes

    * lint

    * minor change

    * cleanup 1

    * cleanup 2

    * cleanup 3

    * lint

    * make patch run work

    * lint

    * list patches in app describe

    * review comments and fixes

    * fix

    * add patch handler

    * change to update config

    * some more fixes

    * some more fixes

    * make update like sys action

    * fixed nic example

    * fix disk add

    * added helper class

    * initial class structure

    * make nic del work

    * add for category and fixed some bugs

    * add min level

    * add min version in profile also

    * Add skip/modify/delete prompt

    * extract prompt function

    * Interactively modify patch payload for app edit

    * extract prompt functions

    * set min/max based on operation

    * exclude nics and disks in use while deleting

    * comment out (unnecessary?) parts

    * format changes

    * remove unnecessary comments

    * remove patch_editables parameter

    * change name for UpdateConfigAttrs to AhvUpdateConfigAttrs

    * fix

    * fix

    * fix

    * change compile to get_user_attrs

    * change validator

    * ipdb

    * fix

    * disk and nic

    * changes

    * fix

    * fix

    * parse patch editables from file input non-interactively

    * handle file editables for multiple attrs

    * fix delete operations

    * add disk and category addition logic

    * fix nic delete operation

    * Add logs for editables parsed through file

    * Fix mistakes in comments and logs

    * Add updating status to app describe command

    * Use global update command instead of overriding

    * Add ignore_runtime_variables flag

    * Add test for ahv patch editables

    * Change nic source from config file

    * Use nic name instead of cluster and nic name

    * move wait for states func to helper class

    * Add section headings while interactively editing variables

    * remove nic delete from bp in test

    * Add more information about editables during interaction

    * fix tests

    * Formatting changes

    * fix snapshot restore test

    * Run formatter

    * move logic to compile

    * add default values

    * fix

    * fix empty patch attrs

    * fix

    * fix

    * remove unwanted file

    * adding test cases for app edit feat

    * adding disk operations to the patach

    * adding validations to the test cases

    * Minor fix in tests

    * adding disk delete and disk modify operations to the patch

    * changeng nic value

    * add release notes

    * add release notes

    * removing breakpoints

    * add release notes

    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>
    Co-authored-by: abhijeetkaurav1st <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>

    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>
    Co-authored-by: abhijeetkaurav1st <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>

commit ba9b246
Author: Mayank Choudhary <[email protected]>
Date:   Tue Nov 2 23:17:59 2021 +0530

    snapshot-restore release notes for 3.3.0 (#75) (#91)

    * snapshot-restore release notes

    * add link to bp example

commit 469fd80
Author: Pradeepsingh Bhati <[email protected]>
Date:   Fri Oct 22 18:36:01 2021 +0530

    Add interface and implementations for aws provider specific api object for different calm versions. (#78) (#88)

    * 1. Add interface for aws provider specific api
    2. Add/restructure implementation of aws api object for different calm versions

    * Reformatting files

    * Reformat import statements

    * Reformatting files(black)

    * Fix version number for aws provider spec object

commit a704367
Author: abhijeetkaurav1st <[email protected]>
Date:   Thu Oct 21 09:18:34 2021 +0530

commit b4162cd
Merge: f68e3eb 905fce3
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Sun Oct 17 20:43:35 2021 +0530

    Merge pull request #85 from ideadevice/task/3.3.0-cherrypick-calm-20742-changes

    Task/3.3.0 cherrypick calm 20742 changes

commit 905fce3
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Sun Oct 17 12:59:12 2021 +0530

    Task/m calm 20742 vm recovery point changes (#76)

    * recovery point changes for bps

    * Adding api changes

    * Adding get commands

    * Adding final validations and substrate fixes for vm_recovery_spec

    * Adding tests for recovery point bp launches

    * Minor fix

    * Minor fix in substrate

    * Fix serial_port_list for ahv_vm.py

    * Adding minor log

    * Added catch to check exception

    * Minor fix

    * Test fix

    * Test fix

    * Fixing network name in test blueprint

commit 4d4da6b
Author: abhijeetkaurav1st <[email protected]>
Date:   Wed Sep 15 16:15:46 2021 +0530

    Skipping runbook test due to CALM-27162

commit fef58ac
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Mon Sep 13 12:08:30 2021 +0530

    Using common helper for waiting for non-busy state (#71)

    * Using common helper for waiting for non-busy state

    * Minor fix

commit b90e676
Author: abhijeetkaurav1st <[email protected]>
Date:   Thu Sep 30 15:20:27 2021 +0530

    Fixing groups helper for caps name and update project using cli switch

commit f68e3eb
Author: anilkumarkondeti <[email protected]>
Date:   Thu Sep 9 18:10:54 2021 +0530

    ignoring VPC subnets (#70) (#74)

commit a6ce146
Author: Pradeepsingh Bhati <[email protected]>
Date:   Thu Sep 9 17:59:22 2021 +0530

    Fix template_id issue when there is no template for vmware create spec (#72) (#73)

    * Fix template_id issue when there is no template for vmware create spec

    * Reformatting

commit 979aa37
Author: Mayank Choudhary <[email protected]>
Date:   Wed Sep 1 16:13:01 2021 +0530

    fix expiry type in cache (#66) (#67)

commit 5c9395e
Author: Mayank Choudhary <[email protected]>
Date:   Wed Sep 1 13:29:20 2021 +0530

    safety checks for protection rule expiry (#64) (#65)

    * safety checks for protection rule expiry

    * safety checks for protection rule expiry while updating cache

commit 8ad8e08
Author: Mayank Choudhary <[email protected]>
Date:   Mon Aug 23 16:59:02 2021 +0530

    protection policy fixes (#60) (#62)

    - #CALM-27047, #CALM-27044 and #CALM-27046

commit 95f3390
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Thu Aug 19 17:54:43 2021 +0530

    Substrate changes for sending account_uuid for ahv_substrates (#56) (#61)

    * Substrate changes, so that correct account_uuid is supplied while creating/compiling blueprint with ahv provider

    * Fixing logic to not use nic.compile() at substrate compile as it involves parent reference

    * Fixing tcs as per latest changes

    * Minor fix when cluster name is not same as cluster account name.

    * Fixing snapshot restore compile test

commit cc3fdb4
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Thu Aug 19 09:50:20 2021 +0530

    Task/m calm 27024 runbook containing durga macros (#58) (#59)

    * Add runbbok containing all macros and test for it

    * minor fix

    * make black

    * Adding todo  task

commit 24c616a
Author: Mayank Choudhary <[email protected]>
Date:   Tue Aug 17 13:47:23 2021 +0530

    Topic/m multivm snapshot changes calm 18417 (#57)

    Summary of changes - https://docs.google.com/document/d/1Ams2OqjtOf74LYf5IwTAnAsyCpcrft6ydPGi0DrZztE/edit?pli=1#heading=h.8n3rtdfbxnjx

     Conflicts:
    	calm/dsl/api/handle.py
    	calm/dsl/builtins/__init__.py
    	calm/dsl/cli/__init__.py
    	calm/dsl/db/table_config.py

(cherry picked from commit c32f9ec877a7bf758d86f42ea3dbb957c38c0ac1)
abhijeetkaurav1st added a commit that referenced this pull request Mar 21, 2022
commit 6586409
Author: abhijeetkaurav1st <[email protected]>
Date:   Tue Nov 9 12:17:02 2021 +0530

    Fixing readme/examples for disk-delete in app-edit

commit 547dea1
Author: abhijeetkaurav1st <[email protected]>
Date:   Tue Nov 9 10:09:15 2021 +0530

    Fixing links in release-notes

commit e5d97b4
Merge: a704367 36dfaf1
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Mon Nov 8 19:29:36 2021 +0530

    Merge pull request #198 from nutanix/release/3.3.0

    Changes for Calm v3.3.0

commit 36dfaf1
Merge: a704367 95bb44e
Author: abhijeetkaurav1st <[email protected]>
Date:   Mon Nov 8 14:15:09 2021 +0530

    Merge branch 'release/3.3.0' of github.com:ideadevice/calm-dsl into release/3.3.0

commit 95bb44e
Author: abhijeetkaurav1st <[email protected]>
Date:   Mon Nov 8 09:50:18 2021 +0530

    Fixing some brownfield and env fixes

commit 4797f32
Author: abhijeetkaurav1st <[email protected]>
Date:   Wed Nov 3 22:46:10 2021 +0530

    Black format

commit 3de448f
Author: abhijeetkaurav1st <[email protected]>
Date:   Wed Nov 3 22:35:31 2021 +0530

    Minor fixes regarding release-notes and some command name fixes

commit 370c975
Author: gaurav <[email protected]>
Date:   Tue Nov 2 23:35:22 2021 +0530

    App edit DSL support (#43) (#92)

    * initial commit for app edit -> parts taken from ideadevice/calm-dsl#19

    * lint fix

    * lint fix

    * lint fix

    * fixes

    * import fix

    * remove extra file

    * fix app edit dsl

    * add example

    * test

    * bring in some structure

    * del

    * remove extra

    * fixed example

    * revert extra changes

    * fixes

    * lint

    * minor change

    * cleanup 1

    * cleanup 2

    * cleanup 3

    * lint

    * make patch run work

    * lint

    * list patches in app describe

    * review comments and fixes

    * fix

    * add patch handler

    * change to update config

    * some more fixes

    * some more fixes

    * make update like sys action

    * fixed nic example

    * fix disk add

    * added helper class

    * initial class structure

    * make nic del work

    * add for category and fixed some bugs

    * add min level

    * add min version in profile also

    * Add skip/modify/delete prompt

    * extract prompt function

    * Interactively modify patch payload for app edit

    * extract prompt functions

    * set min/max based on operation

    * exclude nics and disks in use while deleting

    * comment out (unnecessary?) parts

    * format changes

    * remove unnecessary comments

    * remove patch_editables parameter

    * change name for UpdateConfigAttrs to AhvUpdateConfigAttrs

    * fix

    * fix

    * fix

    * change compile to get_user_attrs

    * change validator

    * ipdb

    * fix

    * disk and nic

    * changes

    * fix

    * fix

    * parse patch editables from file input non-interactively

    * handle file editables for multiple attrs

    * fix delete operations

    * add disk and category addition logic

    * fix nic delete operation

    * Add logs for editables parsed through file

    * Fix mistakes in comments and logs

    * Add updating status to app describe command

    * Use global update command instead of overriding

    * Add ignore_runtime_variables flag

    * Add test for ahv patch editables

    * Change nic source from config file

    * Use nic name instead of cluster and nic name

    * move wait for states func to helper class

    * Add section headings while interactively editing variables

    * remove nic delete from bp in test

    * Add more information about editables during interaction

    * fix tests

    * Formatting changes

    * fix snapshot restore test

    * Run formatter

    * move logic to compile

    * add default values

    * fix

    * fix empty patch attrs

    * fix

    * fix

    * remove unwanted file

    * adding test cases for app edit feat

    * adding disk operations to the patach

    * adding validations to the test cases

    * Minor fix in tests

    * adding disk delete and disk modify operations to the patch

    * changeng nic value

    * add release notes

    * add release notes

    * removing breakpoints

    * add release notes

    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>
    Co-authored-by: abhijeetkaurav1st <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>

    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>
    Co-authored-by: abhijeetkaurav1st <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>

commit ba9b246
Author: Mayank Choudhary <[email protected]>
Date:   Tue Nov 2 23:17:59 2021 +0530

    snapshot-restore release notes for 3.3.0 (#75) (#91)

    * snapshot-restore release notes

    * add link to bp example

commit 469fd80
Author: Pradeepsingh Bhati <[email protected]>
Date:   Fri Oct 22 18:36:01 2021 +0530

    Add interface and implementations for aws provider specific api object for different calm versions. (#78) (#88)

    * 1. Add interface for aws provider specific api
    2. Add/restructure implementation of aws api object for different calm versions

    * Reformatting files

    * Reformat import statements

    * Reformatting files(black)

    * Fix version number for aws provider spec object

commit a704367
Author: abhijeetkaurav1st <[email protected]>
Date:   Thu Oct 21 09:18:34 2021 +0530

commit b4162cd
Merge: f68e3eb 905fce3
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Sun Oct 17 20:43:35 2021 +0530

    Merge pull request #85 from ideadevice/task/3.3.0-cherrypick-calm-20742-changes

    Task/3.3.0 cherrypick calm 20742 changes

commit 905fce3
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Sun Oct 17 12:59:12 2021 +0530

    Task/m calm 20742 vm recovery point changes (#76)

    * recovery point changes for bps

    * Adding api changes

    * Adding get commands

    * Adding final validations and substrate fixes for vm_recovery_spec

    * Adding tests for recovery point bp launches

    * Minor fix

    * Minor fix in substrate

    * Fix serial_port_list for ahv_vm.py

    * Adding minor log

    * Added catch to check exception

    * Minor fix

    * Test fix

    * Test fix

    * Fixing network name in test blueprint

commit 4d4da6b
Author: abhijeetkaurav1st <[email protected]>
Date:   Wed Sep 15 16:15:46 2021 +0530

    Skipping runbook test due to CALM-27162

commit fef58ac
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Mon Sep 13 12:08:30 2021 +0530

    Using common helper for waiting for non-busy state (#71)

    * Using common helper for waiting for non-busy state

    * Minor fix

commit b90e676
Author: abhijeetkaurav1st <[email protected]>
Date:   Thu Sep 30 15:20:27 2021 +0530

    Fixing groups helper for caps name and update project using cli switch

commit f68e3eb
Author: anilkumarkondeti <[email protected]>
Date:   Thu Sep 9 18:10:54 2021 +0530

    ignoring VPC subnets (#70) (#74)

commit a6ce146
Author: Pradeepsingh Bhati <[email protected]>
Date:   Thu Sep 9 17:59:22 2021 +0530

    Fix template_id issue when there is no template for vmware create spec (#72) (#73)

    * Fix template_id issue when there is no template for vmware create spec

    * Reformatting

commit 979aa37
Author: Mayank Choudhary <[email protected]>
Date:   Wed Sep 1 16:13:01 2021 +0530

    fix expiry type in cache (#66) (#67)

commit 5c9395e
Author: Mayank Choudhary <[email protected]>
Date:   Wed Sep 1 13:29:20 2021 +0530

    safety checks for protection rule expiry (#64) (#65)

    * safety checks for protection rule expiry

    * safety checks for protection rule expiry while updating cache

commit 8ad8e08
Author: Mayank Choudhary <[email protected]>
Date:   Mon Aug 23 16:59:02 2021 +0530

    protection policy fixes (#60) (#62)

    - #CALM-27047, #CALM-27044 and #CALM-27046

commit 95f3390
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Thu Aug 19 17:54:43 2021 +0530

    Substrate changes for sending account_uuid for ahv_substrates (#56) (#61)

    * Substrate changes, so that correct account_uuid is supplied while creating/compiling blueprint with ahv provider

    * Fixing logic to not use nic.compile() at substrate compile as it involves parent reference

    * Fixing tcs as per latest changes

    * Minor fix when cluster name is not same as cluster account name.

    * Fixing snapshot restore compile test

commit cc3fdb4
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Thu Aug 19 09:50:20 2021 +0530

    Task/m calm 27024 runbook containing durga macros (#58) (#59)

    * Add runbbok containing all macros and test for it

    * minor fix

    * make black

    * Adding todo  task

commit 24c616a
Author: Mayank Choudhary <[email protected]>
Date:   Tue Aug 17 13:47:23 2021 +0530

    Topic/m multivm snapshot changes calm 18417 (#57)

    Summary of changes - https://docs.google.com/document/d/1Ams2OqjtOf74LYf5IwTAnAsyCpcrft6ydPGi0DrZztE/edit?pli=1#heading=h.8n3rtdfbxnjx

     Conflicts:
    	calm/dsl/api/handle.py
    	calm/dsl/builtins/__init__.py
    	calm/dsl/cli/__init__.py
    	calm/dsl/db/table_config.py

(cherry picked from commit 06859889c686f02d0c302ef5e6bf56e1191b9fc3)
abhijeetkaurav1st added a commit that referenced this pull request Mar 21, 2022
commit 351b5c0
Author: abhijeetkaurav1st <[email protected]>
Date:   Thu Dec 16 14:14:30 2021 +0530

    Minor fixes for undefined attributes at profile model for version setup < 3.3.0.

commit 7ea5982
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Wed Dec 15 19:03:06 2021 +0530

    Added support for get_runbook_action and macro in ahv-disk-images (#206)

    * Allow macro in image names

    * Adding example that shows macor usage in vm-disk-image and vm-nic

    * Adding helper get_runbook_action for getting action out of imported runbook

    * Adding exsiting machine example and minor improvements

    * minor fixes in models

    * Fixing runbook examples

commit bc9dc6a
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Mon Dec 13 20:25:01 2021 +0530

    Use ASCENDING order for list_all query (#205)

    fixes #200

commit 909aba1
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Tue Nov 23 21:46:40 2021 +0530

    Fix for issue 187 (#202)

    * Fixing project update and adding account addition through cli switches

    * Adding test for accoun updation through cli switches

    * Fixing project update using dsl file and adding test for it

    * Added changes in readme

commit a4b8957
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Wed Nov 17 21:37:28 2021 +0530

    Add uuid in env-creation payload (#201)

    * Add uuid in env-creation payload

    * black format

commit 7dbb87d
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Thu Nov 11 14:32:50 2021 +0530

    Fixing the min_version on cache tables (#199)

commit 6586409
Author: abhijeetkaurav1st <[email protected]>
Date:   Tue Nov 9 12:17:02 2021 +0530

    Fixing readme/examples for disk-delete in app-edit

commit 547dea1
Author: abhijeetkaurav1st <[email protected]>
Date:   Tue Nov 9 10:09:15 2021 +0530

    Fixing links in release-notes

commit e5d97b4
Merge: a704367 36dfaf1
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Mon Nov 8 19:29:36 2021 +0530

    Merge pull request #198 from nutanix/release/3.3.0

    Changes for Calm v3.3.0

commit 36dfaf1
Merge: a704367 95bb44e
Author: abhijeetkaurav1st <[email protected]>
Date:   Mon Nov 8 14:15:09 2021 +0530

    Merge branch 'release/3.3.0' of github.com:ideadevice/calm-dsl into release/3.3.0

commit 95bb44e
Author: abhijeetkaurav1st <[email protected]>
Date:   Mon Nov 8 09:50:18 2021 +0530

    Fixing some brownfield and env fixes

commit 4797f32
Author: abhijeetkaurav1st <[email protected]>
Date:   Wed Nov 3 22:46:10 2021 +0530

    Black format

commit 3de448f
Author: abhijeetkaurav1st <[email protected]>
Date:   Wed Nov 3 22:35:31 2021 +0530

    Minor fixes regarding release-notes and some command name fixes

commit 370c975
Author: gaurav <[email protected]>
Date:   Tue Nov 2 23:35:22 2021 +0530

    App edit DSL support (#43) (#92)

    * initial commit for app edit -> parts taken from ideadevice/calm-dsl#19

    * lint fix

    * lint fix

    * lint fix

    * fixes

    * import fix

    * remove extra file

    * fix app edit dsl

    * add example

    * test

    * bring in some structure

    * del

    * remove extra

    * fixed example

    * revert extra changes

    * fixes

    * lint

    * minor change

    * cleanup 1

    * cleanup 2

    * cleanup 3

    * lint

    * make patch run work

    * lint

    * list patches in app describe

    * review comments and fixes

    * fix

    * add patch handler

    * change to update config

    * some more fixes

    * some more fixes

    * make update like sys action

    * fixed nic example

    * fix disk add

    * added helper class

    * initial class structure

    * make nic del work

    * add for category and fixed some bugs

    * add min level

    * add min version in profile also

    * Add skip/modify/delete prompt

    * extract prompt function

    * Interactively modify patch payload for app edit

    * extract prompt functions

    * set min/max based on operation

    * exclude nics and disks in use while deleting

    * comment out (unnecessary?) parts

    * format changes

    * remove unnecessary comments

    * remove patch_editables parameter

    * change name for UpdateConfigAttrs to AhvUpdateConfigAttrs

    * fix

    * fix

    * fix

    * change compile to get_user_attrs

    * change validator

    * ipdb

    * fix

    * disk and nic

    * changes

    * fix

    * fix

    * parse patch editables from file input non-interactively

    * handle file editables for multiple attrs

    * fix delete operations

    * add disk and category addition logic

    * fix nic delete operation

    * Add logs for editables parsed through file

    * Fix mistakes in comments and logs

    * Add updating status to app describe command

    * Use global update command instead of overriding

    * Add ignore_runtime_variables flag

    * Add test for ahv patch editables

    * Change nic source from config file

    * Use nic name instead of cluster and nic name

    * move wait for states func to helper class

    * Add section headings while interactively editing variables

    * remove nic delete from bp in test

    * Add more information about editables during interaction

    * fix tests

    * Formatting changes

    * fix snapshot restore test

    * Run formatter

    * move logic to compile

    * add default values

    * fix

    * fix empty patch attrs

    * fix

    * fix

    * remove unwanted file

    * adding test cases for app edit feat

    * adding disk operations to the patach

    * adding validations to the test cases

    * Minor fix in tests

    * adding disk delete and disk modify operations to the patch

    * changeng nic value

    * add release notes

    * add release notes

    * removing breakpoints

    * add release notes

    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>
    Co-authored-by: abhijeetkaurav1st <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>

    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: Shreevari SP <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>
    Co-authored-by: abhijeetkaurav1st <[email protected]>
    Co-authored-by: anilkumarkondeti <[email protected]>

commit ba9b246
Author: Mayank Choudhary <[email protected]>
Date:   Tue Nov 2 23:17:59 2021 +0530

    snapshot-restore release notes for 3.3.0 (#75) (#91)

    * snapshot-restore release notes

    * add link to bp example

commit 469fd80
Author: Pradeepsingh Bhati <[email protected]>
Date:   Fri Oct 22 18:36:01 2021 +0530

    Add interface and implementations for aws provider specific api object for different calm versions. (#78) (#88)

    * 1. Add interface for aws provider specific api
    2. Add/restructure implementation of aws api object for different calm versions

    * Reformatting files

    * Reformat import statements

    * Reformatting files(black)

    * Fix version number for aws provider spec object

commit a704367
Author: abhijeetkaurav1st <[email protected]>
Date:   Thu Oct 21 09:18:34 2021 +0530

commit b4162cd
Merge: f68e3eb 905fce3
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Sun Oct 17 20:43:35 2021 +0530

    Merge pull request #85 from ideadevice/task/3.3.0-cherrypick-calm-20742-changes

    Task/3.3.0 cherrypick calm 20742 changes

commit 905fce3
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Sun Oct 17 12:59:12 2021 +0530

    Task/m calm 20742 vm recovery point changes (#76)

    * recovery point changes for bps

    * Adding api changes

    * Adding get commands

    * Adding final validations and substrate fixes for vm_recovery_spec

    * Adding tests for recovery point bp launches

    * Minor fix

    * Minor fix in substrate

    * Fix serial_port_list for ahv_vm.py

    * Adding minor log

    * Added catch to check exception

    * Minor fix

    * Test fix

    * Test fix

    * Fixing network name in test blueprint

commit 4d4da6b
Author: abhijeetkaurav1st <[email protected]>
Date:   Wed Sep 15 16:15:46 2021 +0530

    Skipping runbook test due to CALM-27162

commit fef58ac
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Mon Sep 13 12:08:30 2021 +0530

    Using common helper for waiting for non-busy state (#71)

    * Using common helper for waiting for non-busy state

    * Minor fix

commit b90e676
Author: abhijeetkaurav1st <[email protected]>
Date:   Thu Sep 30 15:20:27 2021 +0530

    Fixing groups helper for caps name and update project using cli switch

commit f68e3eb
Author: anilkumarkondeti <[email protected]>
Date:   Thu Sep 9 18:10:54 2021 +0530

    ignoring VPC subnets (#70) (#74)

commit a6ce146
Author: Pradeepsingh Bhati <[email protected]>
Date:   Thu Sep 9 17:59:22 2021 +0530

    Fix template_id issue when there is no template for vmware create spec (#72) (#73)

    * Fix template_id issue when there is no template for vmware create spec

    * Reformatting

commit 979aa37
Author: Mayank Choudhary <[email protected]>
Date:   Wed Sep 1 16:13:01 2021 +0530

    fix expiry type in cache (#66) (#67)

commit 5c9395e
Author: Mayank Choudhary <[email protected]>
Date:   Wed Sep 1 13:29:20 2021 +0530

    safety checks for protection rule expiry (#64) (#65)

    * safety checks for protection rule expiry

    * safety checks for protection rule expiry while updating cache

commit 8ad8e08
Author: Mayank Choudhary <[email protected]>
Date:   Mon Aug 23 16:59:02 2021 +0530

    protection policy fixes (#60) (#62)

    - #CALM-27047, #CALM-27044 and #CALM-27046

commit 95f3390
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Thu Aug 19 17:54:43 2021 +0530

    Substrate changes for sending account_uuid for ahv_substrates (#56) (#61)

    * Substrate changes, so that correct account_uuid is supplied while creating/compiling blueprint with ahv provider

    * Fixing logic to not use nic.compile() at substrate compile as it involves parent reference

    * Fixing tcs as per latest changes

    * Minor fix when cluster name is not same as cluster account name.

    * Fixing snapshot restore compile test

commit cc3fdb4
Author: Abhijeet Singh Kaurav <[email protected]>
Date:   Thu Aug 19 09:50:20 2021 +0530

    Task/m calm 27024 runbook containing durga macros (#58) (#59)

    * Add runbbok containing all macros and test for it

    * minor fix

    * make black

    * Adding todo  task

commit 24c616a
Author: Mayank Choudhary <[email protected]>
Date:   Tue Aug 17 13:47:23 2021 +0530

    Topic/m multivm snapshot changes calm 18417 (#57)

    Summary of changes - https://docs.google.com/document/d/1Ams2OqjtOf74LYf5IwTAnAsyCpcrft6ydPGi0DrZztE/edit?pli=1#heading=h.8n3rtdfbxnjx

     Conflicts:
    	calm/dsl/api/handle.py
    	calm/dsl/builtins/__init__.py
    	calm/dsl/cli/__init__.py
    	calm/dsl/db/table_config.py

(cherry picked from commit ca9f715d6e89ce981cf4d7950efc7c89d69d9abf)
abhijeetkaurav1st added a commit that referenced this pull request Mar 21, 2022
* Topic/m multivm snapshot changes calm 18417 (#57)

Summary of changes - https://docs.google.com/document/d/1Ams2OqjtOf74LYf5IwTAnAsyCpcrft6ydPGi0DrZztE/edit?pli=1#heading=h.8n3rtdfbxnjx

 Conflicts:
	calm/dsl/api/handle.py
	calm/dsl/builtins/__init__.py
	calm/dsl/cli/__init__.py
	calm/dsl/db/table_config.py

* Task/m calm 27024 runbook containing durga macros (#58) (#59)

* Add runbbok containing all macros and test for it

* minor fix

* make black

* Adding todo  task

* Substrate changes for sending account_uuid for ahv_substrates (#56) (#61)

* Substrate changes, so that correct account_uuid is supplied while creating/compiling blueprint with ahv provider

* Fixing logic to not use nic.compile() at substrate compile as it involves parent reference

* Fixing tcs as per latest changes

* Minor fix when cluster name is not same as cluster account name.

* Fixing snapshot restore compile test

* protection policy fixes (#60) (#62)

- #CALM-27047, #CALM-27044 and #CALM-27046

* safety checks for protection rule expiry (#64) (#65)

* safety checks for protection rule expiry

* safety checks for protection rule expiry while updating cache

* fix expiry type in cache (#66) (#67)

* Fix template_id issue when there is no template for vmware create spec (#72) (#73)

* Fix template_id issue when there is no template for vmware create spec

* Reformatting

* ignoring VPC subnets (#70) (#74)

* Fixing groups helper for caps name and update project using cli switch

* Using common helper for waiting for non-busy state (#71)

* Using common helper for waiting for non-busy state

* Minor fix

* Skipping runbook test due to CALM-27162

* Task/m calm 20742 vm recovery point changes (#76)

* recovery point changes for bps

* Adding api changes

* Adding get commands

* Adding final validations and substrate fixes for vm_recovery_spec

* Adding tests for recovery point bp launches

* Minor fix

* Minor fix in substrate

* Fix serial_port_list for ahv_vm.py

* Adding minor log

* Added catch to check exception

* Minor fix

* Test fix

* Test fix

* Fixing network name in test blueprint

* #CALM-28014 Fixing environment ref to pick correct environment

* Add interface and implementations for aws provider specific api object for different calm versions. (#78) (#88)

* 1. Add interface for aws provider specific api
2. Add/restructure implementation of aws api object for different calm versions

* Reformatting files

* Reformat import statements

* Reformatting files(black)

* Fix version number for aws provider spec object

* snapshot-restore release notes for 3.3.0 (#75) (#91)

* snapshot-restore release notes

* add link to bp example

* App edit DSL support (#43) (#92)

* initial commit for app edit -> parts taken from ideadevice/calm-dsl#19

* lint fix

* lint fix

* lint fix

* fixes

* import fix

* remove extra file

* fix app edit dsl

* add example

* test

* bring in some structure

* del

* remove extra

* fixed example

* revert extra changes

* fixes

* lint

* minor change

* cleanup 1

* cleanup 2

* cleanup 3

* lint

* make patch run work

* lint

* list patches in app describe

* review comments and fixes

* fix

* add patch handler

* change to update config

* some more fixes

* some more fixes

* make update like sys action

* fixed nic example

* fix disk add

* added helper class

* initial class structure

* make nic del work

* add for category and fixed some bugs

* add min level

* add min version in profile also

* Add skip/modify/delete prompt

* extract prompt function

* Interactively modify patch payload for app edit

* extract prompt functions

* set min/max based on operation

* exclude nics and disks in use while deleting

* comment out (unnecessary?) parts

* format changes

* remove unnecessary comments

* remove patch_editables parameter

* change name for UpdateConfigAttrs to AhvUpdateConfigAttrs

* fix

* fix

* fix

* change compile to get_user_attrs

* change validator

* ipdb

* fix

* disk and nic

* changes

* fix

* fix

* parse patch editables from file input non-interactively

* handle file editables for multiple attrs

* fix delete operations

* add disk and category addition logic

* fix nic delete operation

* Add logs for editables parsed through file

* Fix mistakes in comments and logs

* Add updating status to app describe command

* Use global update command instead of overriding

* Add ignore_runtime_variables flag

* Add test for ahv patch editables

* Change nic source from config file

* Use nic name instead of cluster and nic name

* move wait for states func to helper class

* Add section headings while interactively editing variables

* remove nic delete from bp in test

* Add more information about editables during interaction

* fix tests

* Formatting changes

* fix snapshot restore test

* Run formatter

* move logic to compile

* add default values

* fix

* fix empty patch attrs

* fix

* fix

* remove unwanted file

* adding test cases for app edit feat

* adding disk operations to the patach

* adding validations to the test cases

* Minor fix in tests

* adding disk delete and disk modify operations to the patch

* changeng nic value

* add release notes

* add release notes

* removing breakpoints

* add release notes

Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>
Co-authored-by: abhijeetkaurav1st <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>

Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>
Co-authored-by: abhijeetkaurav1st <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>

* Minor fixes regarding release-notes and some command name fixes

* Black format

* Fixing some brownfield and env fixes

* Fixing links in release-notes

* Fixing readme/examples for disk-delete in app-edit

* Fixing the min_version on cache tables (#199)

* Add uuid in env-creation payload (#201)

* Add uuid in env-creation payload

* black format

* Fix for issue 187 (#202)

* Fixing project update and adding account addition through cli switches

* Adding test for accoun updation through cli switches

* Fixing project update using dsl file and adding test for it

* Added changes in readme

* Use ASCENDING order for list_all query (#205)

fixes #200

* Added support for get_runbook_action and macro in ahv-disk-images (#206)

* Allow macro in image names

* Adding example that shows macor usage in vm-disk-image and vm-nic

* Adding helper get_runbook_action for getting action out of imported runbook

* Adding exsiting machine example and minor improvements

* minor fixes in models

* Fixing runbook examples

* Minor fixes for undefined attributes at profile model for version setup < 3.3.0.

* Test for class

* Sorry! Reverting demo change.

* Allowing `-ws` flags for bp launch (#209)

* Allowing `-ws` flags for bp launch

* Minor fix for env list call for fetching policies

* Fixing black version for github action (#210)

* Sample fix

* Sample fix

* More minor fixes

* fix ipython version to 7.16.3 due to ipython vulnerability
GHSA-pq7m-3gw7-gq5x

* Fix AHV subnet queries for >30 entities #CALM-29779 (#211)

* Fix AHV subnet queries for >30 entities #CALM-29779

Resolves #207

* Fixed lint

* Fixed subnet queries in another couple of places

* use jinja2 3.0.3 library (#215)

* Oncall/m oncall 12576 calm cache issue (#214)

* added no cache flag

* env create restricted with no cache update

* black format the files

* minor fix for subnet query

* fixing test

* update the readme for experimental behaviour.

Co-authored-by: abhijeetkaurav1st <[email protected]>

Co-authored-by: Mayank Choudhary <[email protected]>
Co-authored-by: Pradeepsingh Bhati <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>
Co-authored-by: Mayank Choudhary <[email protected]>
Co-authored-by: gaurav <[email protected]>
Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>
Co-authored-by: Mark <[email protected]>
Co-authored-by: Kiran Shenoy <[email protected]>
Co-authored-by: Utkarsh Bairolia <[email protected]>
(cherry picked from commit 69680c17170d2ae9b89c483d1be3634101b60f9c)
abhijeetkaurav1st added a commit that referenced this pull request Mar 21, 2022
* Topic/m multivm snapshot changes calm 18417 (#57)

Summary of changes - https://docs.google.com/document/d/1Ams2OqjtOf74LYf5IwTAnAsyCpcrft6ydPGi0DrZztE/edit?pli=1#heading=h.8n3rtdfbxnjx

 Conflicts:
	calm/dsl/api/handle.py
	calm/dsl/builtins/__init__.py
	calm/dsl/cli/__init__.py
	calm/dsl/db/table_config.py

* Task/m calm 27024 runbook containing durga macros (#58) (#59)

* Add runbbok containing all macros and test for it

* minor fix

* make black

* Adding todo  task

* Substrate changes for sending account_uuid for ahv_substrates (#56) (#61)

* Substrate changes, so that correct account_uuid is supplied while creating/compiling blueprint with ahv provider

* Fixing logic to not use nic.compile() at substrate compile as it involves parent reference

* Fixing tcs as per latest changes

* Minor fix when cluster name is not same as cluster account name.

* Fixing snapshot restore compile test

* protection policy fixes (#60) (#62)

- #CALM-27047, #CALM-27044 and #CALM-27046

* safety checks for protection rule expiry (#64) (#65)

* safety checks for protection rule expiry

* safety checks for protection rule expiry while updating cache

* fix expiry type in cache (#66) (#67)

* Fix template_id issue when there is no template for vmware create spec (#72) (#73)

* Fix template_id issue when there is no template for vmware create spec

* Reformatting

* ignoring VPC subnets (#70) (#74)

* Fixing groups helper for caps name and update project using cli switch

* Using common helper for waiting for non-busy state (#71)

* Using common helper for waiting for non-busy state

* Minor fix

* Skipping runbook test due to CALM-27162

* Task/m calm 20742 vm recovery point changes (#76)

* recovery point changes for bps

* Adding api changes

* Adding get commands

* Adding final validations and substrate fixes for vm_recovery_spec

* Adding tests for recovery point bp launches

* Minor fix

* Minor fix in substrate

* Fix serial_port_list for ahv_vm.py

* Adding minor log

* Added catch to check exception

* Minor fix

* Test fix

* Test fix

* Fixing network name in test blueprint

* #CALM-28014 Fixing environment ref to pick correct environment

* Add interface and implementations for aws provider specific api object for different calm versions. (#78) (#88)

* 1. Add interface for aws provider specific api
2. Add/restructure implementation of aws api object for different calm versions

* Reformatting files

* Reformat import statements

* Reformatting files(black)

* Fix version number for aws provider spec object

* snapshot-restore release notes for 3.3.0 (#75) (#91)

* snapshot-restore release notes

* add link to bp example

* App edit DSL support (#43) (#92)

* initial commit for app edit -> parts taken from ideadevice/calm-dsl#19

* lint fix

* lint fix

* lint fix

* fixes

* import fix

* remove extra file

* fix app edit dsl

* add example

* test

* bring in some structure

* del

* remove extra

* fixed example

* revert extra changes

* fixes

* lint

* minor change

* cleanup 1

* cleanup 2

* cleanup 3

* lint

* make patch run work

* lint

* list patches in app describe

* review comments and fixes

* fix

* add patch handler

* change to update config

* some more fixes

* some more fixes

* make update like sys action

* fixed nic example

* fix disk add

* added helper class

* initial class structure

* make nic del work

* add for category and fixed some bugs

* add min level

* add min version in profile also

* Add skip/modify/delete prompt

* extract prompt function

* Interactively modify patch payload for app edit

* extract prompt functions

* set min/max based on operation

* exclude nics and disks in use while deleting

* comment out (unnecessary?) parts

* format changes

* remove unnecessary comments

* remove patch_editables parameter

* change name for UpdateConfigAttrs to AhvUpdateConfigAttrs

* fix

* fix

* fix

* change compile to get_user_attrs

* change validator

* ipdb

* fix

* disk and nic

* changes

* fix

* fix

* parse patch editables from file input non-interactively

* handle file editables for multiple attrs

* fix delete operations

* add disk and category addition logic

* fix nic delete operation

* Add logs for editables parsed through file

* Fix mistakes in comments and logs

* Add updating status to app describe command

* Use global update command instead of overriding

* Add ignore_runtime_variables flag

* Add test for ahv patch editables

* Change nic source from config file

* Use nic name instead of cluster and nic name

* move wait for states func to helper class

* Add section headings while interactively editing variables

* remove nic delete from bp in test

* Add more information about editables during interaction

* fix tests

* Formatting changes

* fix snapshot restore test

* Run formatter

* move logic to compile

* add default values

* fix

* fix empty patch attrs

* fix

* fix

* remove unwanted file

* adding test cases for app edit feat

* adding disk operations to the patach

* adding validations to the test cases

* Minor fix in tests

* adding disk delete and disk modify operations to the patch

* changeng nic value

* add release notes

* add release notes

* removing breakpoints

* add release notes

Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>
Co-authored-by: abhijeetkaurav1st <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>

Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>
Co-authored-by: abhijeetkaurav1st <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>

* Minor fixes regarding release-notes and some command name fixes

* Black format

* Fixing some brownfield and env fixes

* Fixing links in release-notes

* Fixing readme/examples for disk-delete in app-edit

* Fixing the min_version on cache tables (#199)

* Add uuid in env-creation payload (#201)

* Add uuid in env-creation payload

* black format

* Fix for issue 187 (#202)

* Fixing project update and adding account addition through cli switches

* Adding test for accoun updation through cli switches

* Fixing project update using dsl file and adding test for it

* Added changes in readme

* Use ASCENDING order for list_all query (#205)

fixes #200

* Added support for get_runbook_action and macro in ahv-disk-images (#206)

* Allow macro in image names

* Adding example that shows macor usage in vm-disk-image and vm-nic

* Adding helper get_runbook_action for getting action out of imported runbook

* Adding exsiting machine example and minor improvements

* minor fixes in models

* Fixing runbook examples

* Minor fixes for undefined attributes at profile model for version setup < 3.3.0.

* Test for class

* Sorry! Reverting demo change.

* Allowing `-ws` flags for bp launch (#209)

* Allowing `-ws` flags for bp launch

* Minor fix for env list call for fetching policies

* Fixing black version for github action (#210)

* Sample fix

* Sample fix

* More minor fixes

* fix ipython version to 7.16.3 due to ipython vulnerability
GHSA-pq7m-3gw7-gq5x

* Fix AHV subnet queries for >30 entities #CALM-29779 (#211)

* Fix AHV subnet queries for >30 entities #CALM-29779

Resolves #207

* Fixed lint

* Fixed subnet queries in another couple of places

* use jinja2 3.0.3 library (#215)

* Oncall/m oncall 12576 calm cache issue (#214)

* added no cache flag

* env create restricted with no cache update

* black format the files

* minor fix for subnet query

* fixing test

* update the readme for experimental behaviour.

Co-authored-by: abhijeetkaurav1st <[email protected]>

* Minor fix for merge conflict in bp_commands

Co-authored-by: Mayank Choudhary <[email protected]>
Co-authored-by: Pradeepsingh Bhati <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>
Co-authored-by: Mayank Choudhary <[email protected]>
Co-authored-by: gaurav <[email protected]>
Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: Shreevari SP <[email protected]>
Co-authored-by: anilkumarkondeti <[email protected]>
Co-authored-by: Mark <[email protected]>
Co-authored-by: Kiran Shenoy <[email protected]>
Co-authored-by: Utkarsh Bairolia <[email protected]>
(cherry picked from commit 7b1762c0fc103904c2e434b7585d090281418eca)
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.

2 participants