778 Commits

Author SHA1 Message Date
Marko Gaćeša
9cd8e34cce techdebt: [CODE-3209]: move caches to store package (#3449)
* fix test
* Merge remote-tracking branch 'origin/main' into mg/cache/move-caches-to-store
* use pointers to types for evictor
* gob decoder requires ptr
* update pubsub namespace
* add generic evictor, clear cache on space update
* Merge remote-tracking branch 'origin/main' into mg/cache/move-caches-to-store
* added the missing MarkChanged call in spaces soft delete
* move caches to store package
2025-02-24 17:37:49 +00:00
Karan Saraswat
3a1348893d feat: [pipe-25436]: restrict user from updating harness-filestore repo (#3472)
* feat: [pipe-25436]: restrict user from updating harness-filestore repo
2025-02-24 06:47:36 +00:00
Dhruv Dhruv
f237a1f256 feat: [CDE-600]: Adding support to generate and populate setup yaml file in the infra config response. (#3466)
* feat: [CDE-600]: Adding support to generate and populate setup yaml file in the infra config response.
2025-02-24 04:30:14 +00:00
Karan Saraswat
02fe8c076f feat: [CODE-3150]: Validate repo identifier while importing repositories (#3445)
* feat: [CODE-3150]: Validate repo identifier while importing repositories
2025-02-22 11:23:39 +00:00
Marko Gaćeša
53142b18a8 techdebt: [CODE-3218]: use context.WithoutCancel in contextutil (#3457) 2025-02-20 19:20:48 +00:00
Darko Draskovic
e39ae83e78 feat: [CODE-2987]: Add codeowners as reviewers (#3439)
* Handle violations in branch CreatePullReqVerify
* Merge remote-tracking branch 'origin/main' into dd/codeowner-reviewers
* Add PullReq infix to Create rule interface and dedup reviewers in PR create
* Add create field to pullreq field in rule def
* Add codeowners as reviewers
2025-02-20 16:03:06 +00:00
Ansuman Satapathy
5173a358e2 fix: [CDE-651]: handle no metadata for infraproviders (#3460)
* fix: [CDE-651]: handle no metadata for infraproviders
2025-02-20 05:24:36 +00:00
Atefeh Mohseni Ejiyeh
0f3115e604 fix: [CODE-3189]: listing deleted repos in the cleanup job (#3423) 2025-02-19 22:37:07 +00:00
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
Johannes Batzill
8732b64aa8 fix: [CODE-3210]: Move error logs on translation layer to verbosity level info (#3451) 2025-02-18 19:51:52 +00:00
Saranya Jena
06c48f3d3d chore: [ML-660]: moved aiAgent, genAi and capabilities codebase from gitness to harness-intelligence (#3430)
* wire gen
* remove slack messaging code
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into ML-660
* chore: [ML-660]: removed execution analysis types

Signed-off-by: Saranya-jena <saranya.jena@harness.io>
* chore: [ML-660]: removed capabilities

Signed-off-by: Saranya-jena <saranya.jena@harness.io>
* chore: [ML-660]: updated branch

Signed-off-by: Saranya-jena <saranya.jena@harness.io>
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into ML-660
* chore: [ML-660]: removed aiAgent and capabilities codebase

Signed-off-by: Saranya-jena <saranya.jena@harness.io>
2025-02-18 10:17:05 +00:00
Dhruv Dhruv
ff4c51b56f feat: [CDE-636]: Support hybrid gcp vm usecases (#3434)
* Fixing infra config and resources create flow.
* Changing the metadata field's type in infra config create input.
* feat: [CDE-636]: Adding validation before infra config create and update. Adding ipconf_metadata column.
2025-02-14 14:09:47 +00:00
Darko Draskovic
11a7069e3c fix: [CODE-3191]: Fix audit trail space path param (#3429)
* Fix audit trail space path param
2025-02-13 15:59:49 +00:00
Ansuman Satapathy
49b0763130 feat: [CDE-603]: Fetch All root level spaces (#3427)
* feat: [CDE-603]: set infraproviderconfig in the cache
2025-02-13 13:12:19 +00:00
Marko Gaćeša
682f55de71 chore: [CODE-3148]: use refcache.SpaceFinder in usage package (#3422)
* use refcache.SpaceFinder in usage package
2025-02-13 12:06:31 +00:00
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
Darko Draskovic
13f6558ca3 techdebt: [CODE-3169]: Move unnecessary DB calls related to reviewer creation out of the create PR tx (#3420)
* Move activity creation out of tx and reset pr act seq after pr creation
* Add storeCreateReviewerActivity
* Move unnecessary DB calls related to reviewer creation out of the create PR tx
2025-02-13 11:14:36 +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 a5f510c4b2013e45336ce5aae281d68acebf836d.
2025-02-13 09:21:16 +00:00
Marko Gaćeša
a4a05b6281 chore: [CODE-3148]: remove repo git info cache (#3421)
* remove repo git info cache
2025-02-12 17:04:11 +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
Prachi Shah
890fe494de fix: [ML-648]: remove explanation field from chat response body (#3416)
* Merge branch 'main' into ML-648
* remove explanation field
2025-02-12 11:29:10 +00:00
Vivek Dixit
5ef704e559 [feat]: [ML-657]: Added Support For PipelineGeneration (#3417)
* Addressed Comments
* FIxed lint errors
* [feat]: [ML-657]: Added Support For PipelineGeneration
2025-02-12 09:11:47 +00:00
Yogesh Chauhan
360831edc3 fix: [ML-648]: Add a method to give all valid stage_types (#3415)
* remove code comment
* add isValid for request action
* Add a method to give all valid stage_types
2025-02-12 07:40:48 +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
72e7a3dde9 techdebt: [CODE-3169]: Move unnecessary DB calls related to label assignment out of the create PR tx (#3402)
* Merge remote-tracking branch 'origin/main' into dd/remove-from-transaction
* Move storeLabelAssignActivity to tx
* Move pr backfill with label info and activity storing out of the tx
* Replace slices containing label/value info with an assignment map
* Move unnecessary DB calls related to label assignment out of the create PR tx
2025-02-11 18:44:17 +00:00
Yogesh Chauhan
cff1a4a6fb fix: [ML-648]: Propagate LLM errors in stage/step creation (#3400)
* Propagate LLM errors
2025-02-10 13:05:26 +00:00
Ansuman Satapathy
0135603c8d feat: [CDE-603]: set infraproviderconfig identifier and space in the cache (#3399)
* feat: [CDE-603]: set infraproviderconfig in the cache
* feat: [CDE-603]: set infraproviderconfig in the cache
* feat: [CDE-603]: set infraproviderconfig in the cache
2025-02-10 11:54:15 +00:00
Yogesh Chauhan
d2a2c2c361 fix: [ML-648]: Add error to generate output structs (#3397)
* fix test
* pointer to message
* Add error to generate output structs
2025-02-10 11:42:43 +00:00
Enver Biševac
29ee963a89 feat: [code-2912]: improve middleware (#3375)
* Merge remote-tracking branch 'origin/main' into eb/code-2912-middleware
* requested changes
* requested changes
* refactoring code to remove chunk support
* added integration test, minor configuration changes
* fix: add usage metric enabled env var
* requested changes
* requested changes
* refactor tests
* minor imprevemnts
* improve middleware
2025-02-07 18:35:29 +00:00
Dhruv Dhruv
e42e24cdfe feat: [CDE-599]: Auto-creating infra resources at the root level. (#3383)
* feat: [CDE-599]: Auto-creating infra resources at the root level.
2025-02-07 03:47:59 +00:00
Johannes Batzill
1c30053bd6 fix: [CODE-3143]: Cleaup services/system and installID usage (#3380) 2025-02-05 20:22:22 +00:00
Prachi Shah
babaff18f0 feat: [ML-629]: UT added for sanitize conversation function (#3376)
* UT added for sanitize conversation function
2025-02-05 07:32:30 +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
Prachi Shah
44f3628f53 feat: [ML-629]: change generate pipeline stage input struct (#3363)
* error message change
* gci
* sanitize func modified
* Merge branch 'main' into cs
* run goimports
* done
* change generate pipeline stage input struct
2025-02-04 11:42:51 +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
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
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
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
Yogesh Chauhan
2130f7f9a4 [fix]: [ML-575]: Ai Agent Fix stage type enums (#3357)
* Fix stage enums
2025-01-30 14:55:22 +00:00
Prachi Shah
6b231495c1 fix: [ML-575]: mark required fields for spec file (#3350)
* gci write
* lint errors fix
* lint errors fix
* required:'true'
* required : true
* done
* changed
* make stage type as enum according to openapi std
* remove conflicts with main
* mark fields as required
* Merge branch 'main' into ML-575
* make conversationID optional parameter in chat
* generate conversation ID in backend
* Merge branch 'main' into ML-575
* gci run
* gci run
* gci run
* gci run
* lint error fix
* gci run
* resolve comments
* re_generate to regenerate
* gci run
* lint errors fix
* lint error fix
* update actions struct correctly
* update actions struct
* lint error fix
* chat struct and two new enums for actions
* merged
* merge with ML-562
* temp
* done
* done
* remove redundant file
* fixed lint errors in submodule
* lint error fix
* Update wire_gen.go
* Update wire_gen.go
* fix lint errors
* updated error message
* changed loc of enum definitions
* new endpoint /chat
* new type chat
* original
* to original
* made required changes
* trial
* fix lint errors-3
* fi
2025-01-30 11:43:49 +00:00
Enver Biševac
d131a4f2aa feat: [CODE-3112]: write response using pkt error format in service pack and advertise refs (#3348)
* write to response pkt error format in service pack
2025-01-30 08:33:28 +00:00
Prachi Shah
5f11b9ed2d [fix]: [ML-575]: make conversationID optional parameter in chat (#3344)
* make conversationID optional parameter in chat
* generate conversation ID in backend
* Merge branch 'main' into ML-575
* gci run
* gci run
* gci run
* gci run
* lint error fix
* gci run
* resolve comments
* re_generate to regenerate
* gci run
* lint errors fix
* lint error fix
* update actions struct correctly
* update actions struct
* lint error fix
* chat struct and two new enums for actions
* merged
* merge with ML-562
* temp
* done
* done
* remove redundant file
* fixed lint errors in submodule
* lint error fix
* Update wire_gen.go
* Update wire_gen.go
* fix lint errors
* updated error message
* changed loc of enum definitions
* new endpoint /chat
* new type chat
* original
* to original
* made required changes
* trial
* fix lint errors-3
* fix lint errors-2
* fix lint errors
* 3 new enums for stagetype, messagetype, role
* enum types for stagetype, role and messagetype
* role enum and message type enum
* ML-562: New enum
2025-01-29 11:03:05 +00:00
Sourabh Awashti
b058448e19 feat:[AH-926]: update in get artifacts query (#3332)
* feat:[AH-926]: review changes
* Revert "feat:[AH-926]: review changes"

This reverts commit d2e581f0358f54f47b2cd2702751b71b719e1e8b.
* feat:[AH-926]: review changes
* feat:[AH-926]: update in get artifacts query
2025-01-28 08:45:00 +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
Marko Gaćeša
2fa3914fa9 feat: [CODE-3076]: create and update PR refs in the PR controller (#3319)
* update pr refs in controller
2025-01-27 13:38:55 +00:00