Commit Graph

104 Commits

Author SHA1 Message Date
Atefeh Mohseni Ejiyeh
10a3e635b7 fix: [PIPE-25291]: Added openapi endpoint for repo "import-progress" api (#3452) 2025-02-19 16:04:07 +00:00
Dhruv Dhruv
31d15dc8eb feat: [CDE-637]: Changes to support hybrid's infra resources. (#3453)
* Linting
* Refactoring db query in infra resource store for pq support.
* Using a default value of infra config identifier if not present in the create gitspace request.
* feat: [CDE-637]: Decoupling infra resource mgmt from config. Adding soft delete support to infra resource table.
* Making infra provider resource unique to config and space.
2025-02-19 06:45:24 +00:00
Marko Gaćeša
722084608c feat: [CODE-3174]: improve pullreq space list API (#3409)
* improve pullreq space list API
2025-02-11 20:21:06 +00:00
Darko Draskovic
3b31d78da6 feat: [CODE-3134]: Add fetch label with include_values query param (#3369)
* Compose/repack LabelWithValues in find label controller
* Merge remote-tracking branch 'origin/main' into dd/fetch-label-with-values
* Revert to non pointer ListQueryFilter
* Replace Label with LabelWithValues in find repo/space label
* Address review comments
* Add pagination to list values and return all values when fetching a single value
* Add new svc label find with values func
* Add fetch space label with include_values query param
* Add fetch label with include_values query param
2025-02-04 19:53:27 +00:00
Enver Biševac
92e39dee79 feat: [CODE-3129]: add ignore whitespace for diff (#3327)
* better parsing of query param ignore_whitespace
* replace hideWhitespace with ignoreWhitespace
* replace rest client literals with vars
* added openapi
* add ignore whitespace for diff
2025-01-31 21:48:57 +00:00
Atefeh Mohseni Ejiyeh
f97e72bd00 fix: [PIPE-24870]: Fix Swagger for Space Import Repositories API (#3360) 2025-01-30 21:56:36 +00:00
Marko Gaćeša
16e2ec6660 feat: [PIPE-24577]: add 200 response to artefact download API in openapi (#3336)
* add 200 response to artefact download API in openapi
2025-01-30 15:31:33 +00:00
Marko Gaćeša
d6ea2b8de6 fix: [CODE-3030]: fix name of include_git_stats param in openapi (#3289)
* fix name of include_git_stats param in openapi
2025-01-17 12:33:55 +00:00
Marko Gaćeša
f016ac9ac9 feat: [CODE-3030]: introduce include_git_stats param for list PRs APIs (#3284)
* introduce include_git_stats param for list PRs APIs
2025-01-17 11:27:23 +00:00
Darko Draskovic
6554c472d1 feat: [PIPE-24548]: Add label creation to pullreq creation (#3276)
* Refactor label select base const and its use
* Add created labels to create pr response
* Merge remote-tracking branch 'origin/main' into dd/pr-creation-label-assign
* Add label creation to pullreq creation
2025-01-16 16:48:56 +00:00
Marko Gaćeša
0006151b23 feat: [PIPE-24577]: define body for file upload api in openapi def (#3274)
* define body for file upload api in openapi def
2025-01-15 17:11:41 +00:00
Ansuman Satapathy
3685efd458 feat: [CDE-573]: update swagger for gitspace search (#3213)
* feat: [CDE-573]: update swagger for gitspace search
* feat: [CDE-573]: update swagger for gitspace search
* feat: [CDE-573]: update swagger for gitspace search
2024-12-31 08:08:48 +00:00
Enver Biševac
db38802e83 feat: [code-2912]: usage service implementation (#3168)
* feat: [code-2912]: rest and ui changes (#3178)

* requested changes
* rest and ui changes
* requested changes
* add midleware to raw and archieve endpoints
* wire fixed
* requested changes
* Merge remote-tracking branch 'origin/main' into eb/code-2912
* added initial values from db
* minor improvements
* requested changes
* remove check for bandwidth
* wiring dep
* improved test
* limits check added
* config added, minor improvements
* usage service implementation
2024-12-20 10:28:47 +00:00
Darko Draskovic
7b214b58d5 feat: [CODE-285]: Add openapi spec for space recent check list (#3115)
* Add openapi spec for space recent check list
2024-12-06 13:07:21 +00:00
Marko Gaćeša
9adec5fd23 fix: [PIPE-22454]: use constants for names of openapi pullreq parameters (#3043)
* use constants for names of openapi pullreq parameters
2024-11-25 15:06:04 +00:00
Darko Draskovic
2f8a02cc9d fix: [CODE-2814]: Export openapi spec rules related types and structs (#3018)
* Export openapi spec rules related types and structs
2024-11-19 19:44:09 +00:00
Darko Draskovic
fd9a1ad400 feat: [CODE-2568]: Add rules API for space level (#2865)
* Add openapi spec for space rules
* Merge branch 'main' into dd/space-branch-rules
* Fix doc comments and space permissions
* Merge branch 'main' into dd/space-branch-rules
* Add equal check to update rule
* Merge branch 'main' into dd/space-branch-rules
* Use consistently RuleParentInfo
* Add RuleParentInfo type
* Merge branch 'main' into dd/space-branch-rules
* Rename r to rule in funcs and rule to protection
* Merge remote-tracking branch 'origin/main' into dd/space-branch-rules
* Unifiy instrumentation and audit handling
* Add delete, find, list and patch svc funcs and API endpoints
* Add rules API for space level
2024-11-19 12:52:27 +00:00
Karan Saraswat
123969c7e1 feat: [PIPE-23137]: updated executionInfo struct with more data and added lastExecutions to list space pipelines API (#2958)
* fixed go lint
* fixed go lint
* feat: [CODE-23137]: added execution summary data to list space pipelines API
2024-11-08 19:08:20 +00:00
Karan Saraswat
0cd3e0693f feat: [PIPE-22871]: API for listing executions for a project/space (#2941)
* fixed go lint
* added header
* Apply suggestions from code review
* feat: [PIPE-22871]: added filters for list space executions API
* feat: [PIPE-22871]: count of pipelines db query will be run if there is more than 1 page
* removed pipelineId ans repoId from executionPipelineRepoJoin
* fixed go lint
* addressed review comments
* Apply suggestions from code review
* Apply suggestions from code review
* fixed lint
* feat: [PIPE-22871]: API for listing executions for a project/space
2024-11-08 11:55:40 +00:00
Ritik Kapoor
68db486133 fix: [CODE-1577] include pr author in browser param in PR listing page (#2868)
* fix: [CODE-1577] remove redundant code
* refactor: [code-1577] address comments
* fix: [code-1577] lint
* fix: [CODE-1577] address comments
* fix: [code-1577] lint
* fix: [code-1577] lint
* fix: [code-1577] lint
* fix: [code-1577] lint
* feat: [code-1577] add author in URL
2024-11-06 10:20:51 +00:00
Karan Saraswat
0e58c3da0b feat: [PIPE-22870]: rename operationId for space pipelines' listing API (#2938)
* feat: [PIPE-22870]: rename operationId for space pipelines' listing API
2024-11-06 09:25:36 +00:00
Karan Saraswat
0e5b3d64bd feat: [PIPE-22870]: added missing pipelines listing API for spaces (#2924)
* feat: [PIPE-22870]: added missing pipelines listing API for spaces
2024-11-05 12:26:25 +00:00
Marko Gaćeša
0db33abeb1 feat: [PIPE-22454]: add PR metadata in get/list PR API response (#2912)
* add PR metadata in PR API response
2024-11-05 12:02:44 +00:00
Karan Saraswat
6adad6a1f2 fix: [PIPE-22872]: fixed swagger schema for existing APIs (#2921)
* fix: [PIPE-22872]: fixed swagger schema for existing APIs
2024-11-04 16:58:06 +00:00
Ansuman Satapathy
2daeee0b93 feat: [CDE-332]: added a way to filter gitspaces (#2915)
* feat: [CDE-332]: added a way to filter gitspaces
* feat: [CDE-332]: added a way to filter gitspaces
2024-11-04 06:57:06 +00:00
Ansuman Satapathy
2fc779c32a feat: [CDE-332]: updated swagger for gitspaces and sort order for gitspaces activation (#2913)
* feat: [CDE-332]: added a way to filter gitspaces
* feat: [CDE-332]: updated swagger for gitspaces and sort order for gitspaces activation
* feat: [CDE-332]: updated swagger for gitspaces
2024-11-04 04:40:28 +00:00
Marko Gaćeša
d79a1a290c feat: [PIPE-21976]: add flattened directory listing (#2869)
* remove unused parameter
* updated open api to include flatten_driectories param
* add flattened directory listing
2024-10-30 13:26:42 +00:00
Karan Saraswat
ff00a8ba7a fix: [CODE-2628]: replaced TypesRepository with RepoRepositoryOutput from swagger (#2882)
* fixed other types too
* fix: [CODE-2628]: replaced TypesRepository with RepoRepositoryOutput from swagger
2024-10-28 17:21:39 +00:00
Marko Gaćeša
5eb79b3805 feat: [PIPE-22290]: add additional info to list branches API (#2831)
* change type of branch.SHA from string to sha.SHA
* remove code duplication, changed DB query for PRs
* add additional info to list branches API
2024-10-24 13:19:35 +00:00
Karan Saraswat
9a12d72a10 feat: [PIPE-22618]: API to fetch PR with the source and target branch (#2838)
* fixed go lint error
* fixed swagger endpoint
* feat: [PIPE-22618]: API to fetch PRs with the source and target branch
2024-10-22 11:45:10 +00:00
Darko Draskovic
b002a60b02 feat: [CODE-2292]: Add API for space level webhook creation (#2730)
* Merge remote-tracking branch 'origin/main' into dd/webhooks-space
* Move webphookpreprocessor to webhook controller
* Merge remote-tracking branch 'origin/main' into dd/webhooks-space
* Merge branch 'main' into dd/webhooks-space
* Add webhookpreprocessor service
* Add WebhookParentInfo type and refactor webhook svc and store to use it
* Introduce webhookpreprocessor service
* Add space webhooks
* Refactor handlers to use custom fn params
* Move everything webhook service related to webhook service
* Remove webhook parent info type
* Add webhook execution count
* Add space webhooks
2024-10-18 16:27:56 +00:00
Marko Gaćeša
069a35a4d8 feat: [CODE-2484]: add API to squash commits on a branch (#2793)
* add openapi entry for squash
* minor fixes
* squash api
2024-10-15 16:49:02 +00:00
Marko Gaćeša
4d577bb378 fix: [CODE-2134]: replace include_description with exclude_description param (#2808) 2024-10-14 18:08:07 +00:00
Abhinav Singh
f4659a0c31 fix: [CODE-2478]: fix swagger of webhook execution (#2796) 2024-10-10 00:43:28 +00:00
Darko Draskovic
27b0d972f2 feat: [PIPE-22362]: Create openapi spec for user/tokens endpoint (#2782)
* Create openapi spec for user/tokens endpoint
2024-10-08 12:44:57 +00:00
Karan Saraswat
cea79227c2 feat: [CODE-2370]: updated errors for restore/delete PR source branch API in swagger (#2714)
* fixed op name
* feat: [CODE-2370]: updated errors for restore/delete PR source branch API in swagger
2024-09-20 09:32:48 +00:00
Karan Saraswat
8bc9714c92 feat: [CODE-2370]: changes for using PR source branch delete/restore API (#2702)
* fixed error for branch not found
* swagger.yaml prettier
* removed commitSha queryParam and do a getBranch to get the commitSha
* fixed lint issue
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CODE-2370-2
* added commit_sha query param to PR delete branch API
* fixed linting issues
* updated swagger
* feat: [CODE-2370]: changes for using PR source branch delete/restore API
2024-09-20 08:13:50 +00:00
Vistaar Juneja
d91b3f8ed8 feat: [CI-14316]: Connectors support in gitness (#2699)
* fix postgres migration
* address comments
* fix lint
* fix lint issues
* fix db schema, remove unnecessary files
* normalize schema to enforce secret integrity
* connectors fixes
* add created_by field
* rebase connectors implementation with latest
* fix lint
* change UID -> identifier
* refactor files around and lint
* Basic implementation for connectors
2024-09-18 13:24:48 +00:00
Karan Saraswat
93b642b2ba feat: [CODE-2359]: PR source branch delete/restore API (#2690)
* passed 409 for open PRs for restore branch API
* addressed review comments
* fixed lint issue
* feat: [CODE-2359]: PR source branch delete/restore API
2024-09-18 12:17:21 +00:00
Marko Gaćeša
1e644163d3 deprecate PR edited field (#2692)
* deprecate PR edited field
2024-09-16 15:44:17 +00:00
Marko Gaćeša
934b3e8e5a fix method in openapi for rebase api (#2689)
* fix method in openapi for rebase api
2024-09-16 11:20:59 +00:00
Karan Saraswat
80105035f4 feat: [CODE-2338]: Add dry run rules param to create branch API (#2679)
* return struct instead of pointer in deleteBranch and createBranch methods
* feat: [CODE-2338]: Add dry run rules param to create branch API
2024-09-11 09:51:44 +00:00
Marko Gaćeša
16cb3d5bc1 add rebase api (#2675)
* add rebase api
2024-09-10 16:58:44 +00:00
Abhinav Singh
50dc7f1d2c fix: [CODE-2352]: fix repo listing open api (#2676)
* fix: [CODE-2352]: fix repo listing open api
2024-09-10 16:42:03 +00:00
Karan Saraswat
644678f50c feat: [CODE-2339]: Send sha in delete branch API and fix dry run rules behaviour (#2672)
* go lint issues and added return in the Deletebranch method
* removed the comment
* fixed go lint issues
* fixed query param in swagger
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into ks/CODE-2339
* feat: [CODE-2339]: Send sha in delete branch API and fix dry run rules behaviour
2024-09-09 11:45:18 +00:00
Marko Gaćeša
fb99bcb8d2 add mentioned_id filter to the pull request list API (#2635)
* add mentioned_id filter to the pull request list API
2024-09-04 08:21:29 +00:00
Marko Gaćeša
a2d2ba07aa add user filters to the pull request list API (#2624)
* add user filters to the pull request list API
2024-09-02 09:00:50 +00:00
Marko Gaćeša
75042e9293 add pullreq list API for spaces (#2606)
* moved the service to the existing pullreq package
* add pullreq list API for spaces
2024-08-29 11:49:33 +00:00
Karan Saraswat
55d2b1dee3 feat: [CODE-2297]: add dry run param for delete branch API (#2590)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CODE-2297
* updated comment
* worked on review comments and added to openapi spec
* return empty violations array when dry_run = true
* feat: [CODE-2297]: add dry run param for delete branch API
2024-08-28 08:39:04 +00:00
Atefeh Mohseni Ejiyeh
aa66cca792 fix: [CODE-2192]: (Swagger) Add Update default-branch API (#2519)
* add update default branch open api
2024-08-16 00:45:45 +00:00