-
Notifications
You must be signed in to change notification settings - Fork 21
Define Sonar APIs as data #2191
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
Open
okorach
wants to merge
41
commits into
master
Choose a base branch
from
api-as-data
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Make search a classmethod * Add type hints * Add keys for API def * Use api_mgr * Add metrics API * Add class method count and remove public functions * Make rule load consistent with other objects * Make rule load consistent with other objects * Fix method to get Metric * Created load() and reload() method * Formatting * Add page_field() * Don't use api_version to compute nbr_pages() or nbr_total_elements() * Created _new_load() to load objects * Added Metric page_field * Don't use api_version to compute paging info * Use cls instead of Class Name in search * Use cls instead of Metric everywhere possible
* Use api-as-data for users * Remove useless imports * Fix params as tuples * Handle null string in string_to_date * User API as data * Add LIST_GROUPS * Use api mgr for return field * Add api.json in offline build * Fix __get() that is not visible from class * Fixes * Add users LIST API info * Remove None params from prep_params * Add page_field for list users and groups * Fix scmAccount parameter passing for API v1 * Fixed paging calculations * Pass login to v1 api * Fix v1 User LIST api * Cope with variable paging fields * Raise ObjectNotFound if removing user from a group it is not member of * Remove unused legacy API mgt code * Use object class reference to manage cache * Move search as class method * Delete based on API.json * Remove legacy API mgt data * Document SC API * Remove legacy API code * Shorter logs * Use new paginated function * Adapt to paging variations * Fix LTA LATEST test * Quality pass
* Add applications API * Move search() as a class method * Use get_paginated() for search * Add ADD_PROJECT and REMOVE_PROJECT constants * Move apps to api.json * Add the delete_object() method * User delete_object() * Fix applications API * Add type hint * Use delete_object() * Don't use super() for delete_object() * Remove useless api_params() * Formatting
* Remove unused legacy API code * Add Measures API * Add measures API constants * Fix Measures API * Measures API as data
* App branch API as JSON * Import Application for type checking * JSON API based set_tags() and get_tags() * Application SET_TAGS and GET_TAGS * Remove removal of blank fields
* Remove unused component API dict * Quality Gates API as JSON * Import Project class instead of entire projects module * quality pass
* Create class ApiMgr * Use class ApiMgr * Pass self or cls and remove endpoint.version() * API loading is encapsulated in class ApiMgr * Use ApiOperation and ApiManager classes * Quality pass * Add docstring
* Add Issue API definition * API as data for Issues * include return field in api.get_all() * Add API docstrings * Single call to Api + get_all() * Adjust test to get_all() change * Adjust to new ApiOperation * Remove unused imports * Formatting * Add LIST for Issue * Quality pass
* QP API as data * Quality pass
* QP API as data * Quality pass * Token API as data * Merge branch 'api-as-data' into api-as-data-for-tokens * Remove duplicate QP entry * Remove duplicate QP
* Projects API as code * Quality pass * Quality pass
* Fix leftover of API classvar * Fix leftover of API classvar * Add test_list() * Fix leftover of API classvar * Add Rule API * Use return_field instead of hardcoded "component" * Movce __str__ on top * Add GET_SUBCOMPONENTS API * Add Component API * Add GET_SUBCOMPONENTS API * Add delete() for QP * Add delete_object() for projects * Add delete() for portfolios * Add WebHook API * Use SqObject.get_paginated() for search * Ue delete_object() * Move __str__ and __hash__ on top * Split test get_object found and not found * Fix refresh() * reorder methods * Fix KEEP_WHEN_INACTIVE * Further cleanup * Adjust tests * Make branch exists() and get_list() classmethods * replace proj.Project by Project * Revert last change * import Platform for TYPE_CHECKING only * Improv classmethod exists() * Fix Project.exists() call * Quality pass * Handle ValueError for set_tags() * fix passing kwargs to exists()
* Exists as a classmethod * Add endpoint as first param for get_object() of branch * fxi type hints * Simplify imports * Fix exists() and get_object() for branches * Make get_object() app a str or Application * Force kwargs for Language.exists() * pass kwargs to exists() * Move __str__ on top of class * Return None version for SonarQube cloud * Add reload() * Use org API only for SC * Handle none version API corresponding to SQC * MOve predefined methods on top * get_object() as classmethod for QP * Type hints * Remove unused import * Type hints * MOve predefined methods on top * Use classmethod get_object() * Use get_object() classmethod * fix exists() params to correspond to get_object() params * Fix call to AppBranch.exists() * DevOps get_object() as classmethod * PullRequest get_object() as classmethod * exists() and get_object() * Use return_field from READ * Add return_field for Project READ * Fix config mgr package location * Fix has_access() and restore_access() * Adjust reload() signature to common class pattern * Adjust call to has_access() / restore_access() * Import conf manager config file path discovery * Remove api_for() * Align refresh to common pattern * Restore imports * Fix calls to get_object() to pass kwargs * Fix has_access and restore_access params * Add docstring
* get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * get_list() as classmethod * Formatting * Fix get_list as classmethod * Fix forgotten calls to get_list() as global method * Fix forgotten calls to global get_list() * get_list() as classmethod * get_list() as classmethod
* Rename READ in GET * Rename READ in GET * Rename LIST in SEARCH * Remove duplicate GET
* Suppress search_objects() * search() as classmethod * search() as classmethod * search_by_xxx() as classmethod * Make private methods protected * Cleanup search variants * Refactor issues search * Fix search_one_page * Final issues refactoring * Call to Issues.search() * Quality pass * Quality pass
* Fix unitialized issue * Fix call to hotspots.search() * Add branch setting * Fix verify_branch_support() * Run all tests at once * Add test/gen in the issues count by directory * Raise unsupportedOperation when export_findings on CE * Recompute apps only after updating all of them * Add ClassVar for class variable API_DEFINITION * Adjust for CB * Change op in Oper * Quality pass * Quality pass
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.




No description provided.