Karan Saraswat
f85b6c45c3
feat: [PIPE-24894]: Restrict lifecycle operations for reserved repo identifiers ( #3426 )
...
* feat: [PIPE-24894]: Restrict lifecycle operations for reserved repo identifiers
2025-02-13 12:01:53 +00:00
Karan Saraswat
8b81b19c3d
feat: [PIPE-23710]: changed signature of RepoIdentifier to start taking session argument ( #3345 ) ( #3425 )
...
* feat: [PIPE-23710]: changed signature of RepoIdentifier to start taking session argument (#3345 )
* argument changed to session
* fixed failing go lint check
*
updated method usage
*
corrected spelling mistake
*
feat: [PIPE-23710]: changed signature of RepoIdentifier to start taking internal boolean argument
2025-02-13 10:14:20 +00:00
Karan Saraswat
5018aacfb7
feat: [PIPE-24894]: Revert "changed signature of RepoIdentifier to start taking session argument ( #3345 )" ( #3424 )
...
* Revert "feat: [PIPE-23710]: changed signature of RepoIdentifier to start taking session argument (#3345 )"
This reverts commit a5f510c4b2
.
2025-02-13 09:21:16 +00:00
Marko Gaćeša
a906259562
feat: [CODE-3148]: refactor refcache ( #3390 )
...
* linter issues fix
* reintroduce repofinder to aiagent
* Merge remote-tracking branch 'origin/main' into mg/cache/space-and-repo-finder
* removed refcache deps from aiagent
* pr comments
* fix linter issues
* refactor refcache
2025-02-12 12:42:12 +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
Karan Saraswat
a5f510c4b2
feat: [PIPE-23710]: changed signature of RepoIdentifier to start taking session argument ( #3345 )
...
* argument changed to session
* fixed failing go lint check
*
updated method usage
*
corrected spelling mistake
*
feat: [PIPE-23710]: changed signature of RepoIdentifier to start taking internal boolean argument
2025-02-04 09:18:16 +00:00
Marko Gaćeša
530a707052
feat: [CODE-3076]: update several refs on merge ( #3355 )
...
* resolve pr comments
* update several refs on merge
2025-02-03 10:52:01 +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
Darko Draskovic
2f9d9583e6
feat: [CODE-1805]: Add service account rule bypass list support ( #3297 )
...
* Make service account store code more consistent
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Remove principal controller interface
* Address review comments
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Add pagination to repo/space list service account
* Revert to non embedded Principal to ServiceAccount
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Add query param to service account list
* Add inherited param to principal filter
* Merge remote-tracking branch 'origin/main' into akp/CODE-1805
* Merge remote-tracking branch 'origin/main' into akp/CODE-1805
* Return service account info instead of vanilla service account
* Return principal info to return id instead o
2025-01-31 17:46:24 +00:00
Marko Gaćeša
6f37eaea3f
fix: [CODE-3120]: reload repo in repo summary API controller ( #3356 )
...
* reload repo in repo summary API controller
2025-01-30 16:09:55 +00:00
Johannes Batzill
cbd889881b
feat: [CODE-2693]: Add backend support to track time of last push. ( #3320 )
2025-01-27 22:03:35 +00:00
Atefeh Mohseni Ejiyeh
f78f767ae2
feat: [CODE-2818]: Add Archive Repo functionality ( #3051 )
2025-01-13 19:02:51 +00:00
Marko Gaćeša
2b959817d5
feat: [CODE-2862]: put space fetch behind a cache ( #3201 )
...
* replaced type of the inner cache to SpaceCache
* put space fetch behind a cache
2024-12-25 11:37:40 +00:00
Darko Draskovic
265eb40f22
feat: [CODE-1353]: Add status check and merge check SSE events ( #3146 )
...
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Add webhook create/update/delete event
* Add branch/tag created/updated deleted events
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Add new event types
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Add logs directly to publisher
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Add status check and merge check SSE events
2024-12-18 16:00:58 +00:00
Johannes Batzill
5698383d44
fix: [CODE-2908]: Fix permission checks for space level rule + label operations ( #3123 )
2024-12-06 21:59:07 +00:00
Karan Saraswat
423702f0c0
feat: [PIPE-23720]: add author details to the commits API ( #3095 )
...
* addressed review comment
* feat: [PIPE-23720]: add author details to the commits API
2024-12-03 17:35:07 +00:00
Marko Gaćeša
f1eb44a30a
feat: [CODE-2531]: ignore not found error in delete repo ( #3023 )
...
* remove err==NotFound check in controller layer
* ignore not found error in delete repo
2024-11-22 10:24:00 +00:00
Darko Draskovic
335eaa73c1
feat: [CODE-2498]: Add time and author filter params to list commits page ( #3000 )
...
* Remove redundant consts and annotate errors
* Add a Regex bool field to the api.CommitFilter
* Add use author/commiter regex bool to list commit filter
* Merge branch 'main' into dd/commit-time-author-filter
* Add commiter IDs
* Merge branch 'main' into dd/commit-time-author-filter
* Merge branch 'main' into dd/commit-time-author-filter
* Merge branch 'main' into dd/commit-time-author-filter
* Add regex quote for author
* Add time and author filter params to list commits page
2024-11-21 10:31:32 +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
Andreas Deininger
ff2da8563e
[GH] Fix typos ( #3566 )
...
This PR fixes various typos i spotted in the project.
2024-11-07 11:34:07 -08: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
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
Marko Gaćeša
8c5e7546c3
feat: [CODE-2567]: improve git commit message handling ( #2849 )
...
* make the change backward compatible
* improve git commit message handling
2024-10-24 10:08:36 +00:00
Atefeh Mohseni Ejiyeh
0a35385255
feat: [CODE-2426]: Separate CODE Repo Create/Edit into distinct permissions ( #2758 )
2024-10-23 16:37:06 +00:00
Darko Draskovic
0f3956696c
feat: [PIPE-22071]: Enhance pipeline list API to include last 10 execution summaries for a pipeline ( #2840 )
...
* Scan directly into types.ExecutionInfo
* Merge remote-tracking branch 'origin/main' into dd/pipeline-execs
* Merge remote-tracking branch 'origin/main' into dd/pipeline-execs
* Add last_executions param and optimize db query for last execs
* Enhance pipeline list API to include last 10 execution summaries for a pipeline
2024-10-23 16:17:25 +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
Akhilesh Pandey
950c917947
feat: [CODE-2312]: fix missing resource name issue ( #2814 )
...
* feat: [CODE-2312]: fix missing resource name issue
2024-10-15 13:00:58 +00:00
Akhilesh Pandey
3ef7f9f55a
feat: [CODE-2312]: Update UI labels for audit service ( #2805 )
...
* feat: [CODE-2312]: revert go-sdk changes in all places
* feat: [CODE-2312]: revert go.mod changes
* feat: [CODE-2312]: fresh reset
* feat: [CODE-2312]: go.mod changes
* feat: [CODE-2312]: address resourcename to commit.go
* Merge branch 'main' into akp/CODE-2312
* feat: [CODE-2312]: address resourcename to commit.go
* feat: [CODE-2312]: address resourcename to commit.go
* feat: [CODE-2312]: address failure due to exceeding limit on resource labels
* feat: [CODE-2312]: lint
* feat: [CODE-2312]: MERGE
* feat: [CODE-2312]: Update wire
* feat: [CODE-2312]: update ui labels
* feat: [CODE-2312]: update resource and action
* feat: [CODE-2312]: Audit log new action : bypassed
* feat: [CODE-2312]: audit log object update
* Merge branch 'main' into akp/CODE-2312
* feat: [CODE-2312]: audit logging changes for commit, merge, create and delete branch
* Merge branch 'main' into akp/CODE-2312
* Merge branch 'main' into akp/CODE-2312
* feat: [CODE-2312]: introduce parser and enclosing method
* feat: [CODE-2312]: annotate error
* feat: [CODE-2312]: name change and todo removal
* feat: [CODE-2312]: Annotate errors
* feat: [CODE-2232]: Branch Rules: UserGroup support: Create and List
2024-10-11 17:05:19 +00:00
Akhilesh Pandey
e3b3e983fd
feat: [CODE-2312]: audit logging changes for commit, merge, create and delete branch ( #2686 )
...
* feat: [CODE-2312]: address resourcename to commit.go
* feat: [CODE-2312]: address failure due to exceeding limit on resource labels
* feat: [CODE-2312]: lint
* feat: [CODE-2312]: MERGE
* feat: [CODE-2312]: Update wire
* feat: [CODE-2312]: update ui labels
* feat: [CODE-2312]: update resource and action
* feat: [CODE-2312]: Audit log new action : bypassed
* feat: [CODE-2312]: audit log object update
* Merge branch 'main' into akp/CODE-2312
* feat: [CODE-2312]: audit logging changes for commit, merge, create and delete branch
* Merge branch 'main' into akp/CODE-2312
* Merge branch 'main' into akp/CODE-2312
* feat: [CODE-2312]: introduce parser and enclosing method
* feat: [CODE-2312]: annotate error
* feat: [CODE-2312]: name change and todo removal
* feat: [CODE-2312]: Annotate errors
* feat: [CODE-2232]: Branch Rules: UserGroup support: Create and List
2024-10-08 16:20:56 +00:00
Marko Gaćeša
746e3f0275
feat: [CODE-2335]: fix rebase API rule check ( #2731 )
...
* fix rebase API rule check
2024-09-24 15:38:09 +00:00
Marko Gaćeša
8dac8c2797
feat: [CODE-2335]: add dryrun option for rebase API ( #2721 )
...
* dryrun rebase
2024-09-23 14:46:17 +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
Marko Gaćeša
fb58f8c04f
feat: [CODE-2380]: add error message to rebase api ( #2701 )
...
* add error message to rebase api
2024-09-18 12:25:58 +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
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
Akhilesh Pandey
a2cea52155
feat: [CODE-2232]: Branch Rules: UserGroup support: Create and List ( #2640 )
...
* feat: [CODE-2327]: add usergroup change to rebase api
* Merge branch 'main' into akp/CODE-2327
* feat: [CODE-2327]: wrap error
* feat: [CODE-2327]: move resolver inside bypass.go and update tests
* feat: [CODE-2327]: newline
* feat: [CODE-2327]: update wire
* Merge remote-tracking branch 'origin' into akp/CODE-2327
* feat: [CODE-2327]: update tests
* feat: [CODE-2327]: fix build
* feat: [CODE-2327]: merge main
* feat: [CODE-2327]: add and update unit tests
* feat: [CODE-2327]: fix
* feat: [CODE-2312]: introduce parser and enclosing method
* Apply suggestion from code review
* feat: [CODE-2327]: annotate error
* Merge branch 'main' into akp/CODE-2327
* feat: [CODE-2327]: usergroup resolver via controller
* feat: [CODE-2312]: update interface in protection
* feat: [CODE-2312]: export and update deduplication use
* feat: [CODE-2327]: Branch Rules: Allow Group bypass.go
* feat: [CODE-2232]: Branch Rules: UserGroup support: Create and List
2024-09-11 08:04:31 +00:00
Marko Gaćeša
16cb3d5bc1
add rebase api ( #2675 )
...
* add rebase api
2024-09-10 16:58:44 +00:00
Akhilesh Pandey
905d027cc3
feat: [CODE-2232]: Branch Rules: UserGroup support: Create and List ( #2636 )
...
* feat: [CODE-2312]: annotate error
* feat: [CODE-2312]: name change and todo removal
* feat: [CODE-2312]: Annotate errors
* feat: [CODE-2232]: Branch Rules: UserGroup support: Create and List
2024-09-09 14:41: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
Enver Biševac
61c794da0b
feat: unrealted histories error handling ( #2642 )
...
* comments added
* return proper status and message for unrelated history
* code cleanup
* requested changes
* feat: unrealted histories error handling
2024-09-06 11:41:21 +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
Darko Draskovic
0346a91cda
Fix label value define permissions ( #2596 )
...
* Simplify if test and keep check- prefix
* Fix label value define permissions
2024-08-27 17:12:42 +00:00
Atefeh Mohseni Ejiyeh
d2dcc9213b
feat: [CODE-2245] (Public Access) Enforce repo-review permission ( #2522 )
...
* updated permission with review wherever is needed
2024-08-20 16:33:59 +00:00
Darko Draskovic
cd5de8fe62
Fix pullreq count when applying label/value id filter ( #2525 )
...
* Add sanitize func related to label define/update
* Fix pullreq count when applying label/value id filter
2024-08-20 10:46:20 +00:00
Enver Biševac
6d0db9512e
feat: instrumentation, intitial work ( #2475 )
...
* requested changes
* requested changes
* feat: instrumentation, intitial work
2024-08-18 22:04:34 +00:00
Darko Draskovic
c3c75d47aa
Refactor router and openapi related to labels to export setup funcs and params ( #2500 )
...
* Refactor router and openapi related to labels to export setup funcs and params
2024-08-14 14:06:04 +00:00
Atefeh Mohseni Ejiyeh
cef6708a1e
Support Repo Migration APIs (create repo, import PRs, webhooks, and branch rules) ( #2158 )
...
* update migrator mdoule
* added formatted forbidden error helper
* delete work sum
* check branch rule identifier check
* match migrator data contract for webhooks
* self review
* self review
* self review, code cleaning
* resolve conflicts
* updated import api calls
* resolve conflicts
* lint
* bypass pre-receive block ref update on push if it's migrator push
* migrate controller and apis
* pull main
* add migrate routes to terminate path prefix apis
* move apis to migrate pkg
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into atmsn/import_meta
* import branch rules API
* wip import webhooks
2024-08-07 23:40:09 +00:00
Darko Draskovic
0cb3c8a4cf
Add render pagination and incremental search to labels ( #2311 )
...
* Remove unused upsert method from label value store
* Add render pagination and incremental search to labels
2024-07-30 15:43:31 +00:00
Darko Draskovic
81fcd524c8
Add label feature ( #2073 )
...
* Address PR comments
* Add list label from ancestor scopes query param
* Add label feature
2024-07-25 14:57:56 +00:00
Abhinav Singh
d0562a573c
feat: [CODE-2146]: add new router paradigm
...
* lint
* address comment
* fix
* ssh ctx
* add ctx for new places
* generate wiregen
* Merge remote-tracking branch 'harness0/main' into abhinav/new-router-paradigm
* Merge branch 'main' into abhinav/new-router-paradigm
* add new discussion changes
* address comment
* address comment
* address comment
* address comment
* address comment
* feat: abstract routers logic
* feat: abstract routers logic
* feat: abstract routers logic
* feat: abstract routers logic
* feat: abstract routers logic
* feat: abstract routers logic
* feat: abstract routers logic
* style
* remove nil context
* add ctx to missing
* style
* remvoe ctx
* remvoe ctx
* feat: provider should have ctx
2024-07-23 21:39:39 +00:00