Commit Graph

546 Commits (main)

Author SHA1 Message Date
Deepak Bhatt 205a25900f feat: [CDE-693]: mv message map to enum package (#3636)
* fix: [CDE-693]: mv message map to enum package
2025-04-04 12:04:27 +00:00
Deepak Bhatt e7d7db57b4 feat: [CDE-693]: add gitspace events for delegate task submit and infra vm creation (#3616)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-693
* feat: [CDE-693]: add new gitspace events
* feat: [CDE-693]: add gitspace events for delegate task submit and infra vm creation
2025-04-04 07:17:52 +00:00
Darko Draskovic 60a182e515 feat: [CODE-1277]: Add support for PR target branch change (#3579)
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Add openapi spec for opChangeTargetBranch
* Fix updateMergeData args
* Refactor ChangeTargetBranch to use verifyBranchExistence and git.GetRefPath
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Refactor instumentation and event payload
* Change instrumentation and event payload
* Add target-branch-changed event
* Get new merge base and clear merge related fields
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Add merge check to target branch change
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Add new PullReqActivityType and EventType for audit track
* Add support for PR target branch change
2025-03-28 16:04:15 +00:00
Darko Draskovic cc2a63b797 feat: [CODE-3293]: Add create compound label activity on PR creation label assignments (#3603)
* Add PullRequestActivityLabelBase
* Merge remote-tracking branch 'origin/main' into dd/compound-label-activity
* Add create compound label activity on PR creation label assignments
2025-03-28 15:29:01 +00:00
Vikyath Harekal 963197214e feat: [CDE-698]: Store gateway host in infra provisioned for full sync (#3598)
* feat: [CDE-698]: Remove unwanted changes
* feat: [CDE-698]: Store gateway host in infra provisioned for full sync
2025-03-27 05:11:25 +00:00
Shivakumar Ningappa 4fc663ed04 feat: [AH-900]: implement: write event to redis every time a blob is stored in storage. Implement for both OCI and generic blobs (#3548)
* feat: [AH-900]: lint error
* feat: [AH-900]: lint error
* feat: [AH-900]: implement: - add helper function to generate path
* feat: [AH-900]: rebase
* feat: [AH-900]: cleanup
* feat: [AH-900]: don't send event if the blob was updated. send only for created
* feat: [AH-900]: extract common method
* feat: [AH-900]: implement: - review comments
* feat: [AH-900]: implement: - review comments
* feat: [AH-900]: rebase
2025-03-25 05:58:33 +00:00
Tudor Macari d84b5cc7e1 feat: [AH-1116]: remove artifact updated event (#3559)
* feat: [AH-1116]: remove artifact updated event
2025-03-24 09:08:32 +00:00
Johannes Batzill 9d5ceb0033 fix: [CODE-3379]: Remove PR author from default reviewer evaluation (#3578) 2025-03-20 19:33:56 +00:00
Tudor Macari 89b2a19837 feat: [AH-1077]: Change secretSpaceId from int to int64 (#3553)
* feat: [AH-1077]: fix tests
* resolve conflicts
* feat: [AH-1077]: Change secretSpaceId from int to int64
2025-03-18 11:47:49 +00:00
Marko Gaćeša d708de0730 fix: [CODE-2947]: add posthog (#3528)
* changed the object-verb separator char
* change env var name for the PH API key
* add events for repo import and migrate
* rename pr "open" to "create""
* resolve pr comments
* add posthog
2025-03-18 11:31:51 +00:00
Dhruv Dhruv b0de915ae2 feat: [CDE-669]: Integrating gitspaces and infra providers with delete spaces functionality. (#3558)
* Addressing review comments.
* Rebasing
* Removing reliance on space paths for gitspace service.
* feat: [CDE-669]: Integrating gitspaces and infra providers with soft delete spaces functionality.
2025-03-18 08:00:25 +00:00
Tudor Macari a0461fd870 feat: [AH-1067]: use internal webhook secret (#3539)
* feat: [AH-1067]: change var name
* feat: [AH-1067]: change var name
* feat: [AH-1067]: fix lint issues
* feat: [AH-1067]: use internal webhook secret
2025-03-12 21:00:50 +00:00
Vikyath Harekal ff18742bdd feat: [CDE-681]: Find infra from DB and status from GCP (#3538) (#3540)
* feat: [CDE-681]: Find infra from DB and status from GCP (#3538)

* Merge branch 'hybrid' into CDE-681
* feat: [CDE-681]: fix lint
* feat: [CDE-681]: fix lint
* feat: [CDE-681]: merge
* feat: [CDE-681]: fix wiring
* feat: [CDE-681]: handle delete and fallback for it
* feat: [CDE-681]: handle delete and fallback for it
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: merge
* feat: [CDE-661]: set starting state by default in resume
* Merge branch 'main' into hybrid
* feat: [CDE-661]: fix host and port (#3511)

* feat: [CDE-661]: fix host and port
* feat: [CDE-661]: fix host and port
* feat: [CDE-661]: send remove request for hybrid (#3500)

* feat: [CDE-661]: add debug logs
* feat: [CDE-661]: send remove request for hybrid
* feat:
2025-03-12 10:43:31 +00:00
Atefeh Mohseni Ejiyeh 0a573a566c feat: [CODE-2528]: Support Git LFS (#3506)
* Apply suggestion from code review
* Merge branch 'feature/GitLFSv1' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into feature/GitLFSv1
* pr comments
* Apply suggestion from code review
* PR comments and lints
* lints
* pr comments
* self review-code cleaning
* feat: [CODE-2528]: implement gcs download func (#3505)
* revert ui changes that sneaked into my pr
* rely on repoCore
* merge main into feature branch
* fix: parsing LFS OIDs in git (#3470)
* Detect missing lfs objects on pre-receive (#3378)
* use principal type to generate token for remote auth (#3385)
* Revert "feat: [PIPE-24548]: Add label creation to pullreq creation (#3276)"

This reverts commit 6391117c6137a574934b9adb57b46ca7d7feaa19.
* feat: [CODE-2528] Git LFS Over SSH (#3279)
* 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
2025-03-11 21:14:13 +00:00
Tudor Macari 6da9821bc7 feat: [AH-933]: implement webhook execution (#3444)
* feat: [AH-933]: implement webhook execution
* feat: [AH-933]: implement webhook execution
2025-03-11 21:08:21 +00:00
Dhruv Dhruv 45d2a72d20 fix: [CDE-668]: Fixing the usage of last used field in gitspace instance. (#3524)
* Fixing formatting.
* fix: [CDE-668]: Fixing the usage of last used field in gitspace instance.
2025-03-07 09:41:47 +00:00
Dhruv Dhruv 4d7c6addde feat: [CDE-660]: Adding support for listing and (soft) deleting infra provider configs. (#3502)
* Fixing gitspace instance state enum.
* feat: [CDE-660]: Adding support for listing and (soft) deleting infra provider configs.
2025-03-04 06:35:19 +00:00
Johannes Batzill 1d73543050 chore: [CODE-3294]: Return 'id' for principal,user,service-account,service, and user group (#3501) 2025-03-03 18:13:49 +00:00
Darko Draskovic bb82438965 feat: [CODE-3278]: Add PR activity for reviewers that were added on PR creation (#3499)
* Reuse PullRequestActivityPayloadReviewerAdd and amend it with PrinciaplIDs
* Remove unused and redundant activity (sub)type
* Merge remote-tracking branch 'origin/main' into dd/pr-reviewer-creation-activity
* Replace store individual activity per reviewer added with store batch
* Add PR activity for reviewers that were added on PR creation
2025-03-03 16:07:01 +00:00
Darko Draskovic cad0fbdf98 feat: [CODE-3256]: Add merge verify rule info related to minimum required approvals count for default reviewers (#3483)
* Merge remote-tracking branch 'origin/main' into dd/merge-verify-rules
* Replace princiapl ids with infos in merge verify response
* Populate DefaultReviewerApprovalsResponse with principal ids and current count
* Add MergeVerifyRulesResponse type
2025-02-26 17:56:59 +00:00
Darko Draskovic df7ac77361 feat: [CODE-3233]: Automatically add default reviewers based on rules (#3464)
* Fix tests
* Amend on protection rules verify to include the entire rule output data
* Merge remote-tracking branch 'origin/main' into dd/rule-reviewers
* Fix protection.Branch init in mapToBranchRules
* Amend MergeVerify to include number of default reviewer approvals
* Merge remote-tracking branch 'origin/main' into dd/rule-reviewers
* Refactor add code owners as reviewers to include add default reviewers
* Automatically add default reviewers based on rules
2025-02-25 15:52:59 +00:00
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
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
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
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
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
Deepak Bhatt 0e372cc7ec feat: [CDE-609]: add log key to gitspaceConfig (#3419)
* add log key
2025-02-12 15:20:21 +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
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
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
Dhruv Dhruv d9c8d1c4d1 fix: [CDE-632]: Fixing marshalling and unmarshalling logic for features and mounts. (#3405)
* fix: [CDE-632]: Fixing marshalling and unmarshalling logic for features and mounts.
2025-02-11 10:06:20 +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
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
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
Vikyath Harekal d194dc1446 feat: [CDE-585]: Add json tags for InstanceInfo (#3331)
* feat: [CDE-585]: Add json tags for InstanceInfo
2025-01-28 05:06:52 +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
Darko Draskovic 6ed620bdc3 feat: [PIPE-24548]: Add label PR label assignment count (#3292)
* Refactor count pullreq assignments to backfill form
* Add label PR label assignment count
2025-01-17 17:37:46 +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
Vikyath Harekal 19e099a2c1 feat: [CDE-584]: Add zone to instance info (#3286)
* feat: [CDE-584]: Add zone to instance info
2025-01-17 05:43:34 +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
Deepak Bhatt c54b82706e feat: [CDE-577]: fix jetbrains ide issues (#3281)
* feat: [CDE-577]: fix jetbrains ide issues
2025-01-16 07:23:26 +00:00
Dhruv Dhruv b94a78c795 feat: [CDE-572]: Using features for devcontainers. (#3260)
* feat: [CDE-572]: Using features for devcontainers. Adding changes to parse features from the devcontainer.json and build a new docker image from them. Also adding the support for new devcontainer.json properties- init, privileged, capAdd, securityOpt, mounts. Adding support for three runArgs- privileged, capAdd, mount. Also making the DownloadFeature method context aware, cancelling the goroutines when the ctx is cancelled.
2025-01-15 07:22:55 +00:00
Vikyath Harekal f8957318f6 feat: [CDE-584]: Store instance info (to be used to make the execute/cleanup stateless on runner) (#3261)
* feat: [CDE-584]: Store instance info (to be used to make the execute/cleanup stateless on runner)
2025-01-15 05:27:42 +00:00
Dhruv Dhruv b1d0c945d1 feat: [CDE-572]: Adding support for features- sorting and building. (#3248)
* Addressing review comments.
* feat: [CDE-572]: Adding support for features- sorting and building.
2025-01-14 08:21:44 +00:00
Atefeh Mohseni Ejiyeh f78f767ae2 feat: [CODE-2818]: Add Archive Repo functionality (#3051) 2025-01-13 19:02:51 +00:00