Skip to content

Conversation

@okorach
Copy link
Owner

@okorach okorach commented Dec 31, 2025

No description provided.

okorach-sonar and others added 30 commits December 31, 2025 15:08
* 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
okorach and others added 11 commits January 2, 2026 23:54
* 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
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 5, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
6 New issues

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

3 participants