Commit Graph

278 Commits (fd848b1e154bdbfc27aab448d888d2c16cc22530)

Author SHA1 Message Date
Akhilesh Pandey fd848b1e15 feat: [CODE-2318]: Update error message in case of forbidden (#2780)
* feat: [CODE-2318]: update error logic to be translate in controller
* Merge branch 'main' into akp/CODE-2318
* feat: [CODE-2318]: update error logic to be translate in controller
* feat: [CODE-2318]: remove nested error handling
* feat: [CODE-2318]: Update error message in case of forbidden
2024-10-18 14:16:16 +00:00
Deepak Bhatt 21bdad8ece feat: [CDE-390]:add can delete column in gitspace_config table (#2827)
* fix err msg
* update migration query
* fix typo
* feedback comments
* add can delete column in gitspace_config table
2024-10-18 08:38:27 +00:00
Abhinav Singh f7411b41c9 feat: [CODE-2500]: add support for webhook internal url (#2806)
* feat: [CODE-2500]: add support for webhook internal url
* feat: [CODE-2500]: add support for webhook internal url
* feat: [CODE-2500]: add support for webhook internal url
2024-10-16 22:33:00 +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
Marko Gaćeša 4d577bb378 fix: [CODE-2134]: replace include_description with exclude_description param (#2808) 2024-10-14 18:08:07 +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
Kapil Garg 45be4fb7cb fix: [CDE-268]: add space path in resource input for update API (#2798)
* use parent space path
* add space path in resource input for update API
2024-10-10 06:43:41 +00:00
Marko Gaćeša c628d3307d feat: [CODE-2483]: skip permission check for space pullreq API and fix the inner loop (#2791)
* skip permission check for space pullreq API and fix the inner loop
2024-10-09 10:43:32 +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 2892378036 feat: [CODE-1474]: add check PR rebaseability (#2763)
* update migration number
* rename UpdateConflict->UpdateMergeOutcome
* small fixes
* handle mergeability for all merge methods
* alway separate rebaseability check
* add check PR rebaseability
2024-10-04 12:36:32 +00:00
Ansuman Satapathy 2e2cbfa825 feat: [CDE-336]: gitspace active time, and list inactive optimize (#2766)
* feat: [CDE-336]: gitspace active time, and list inactive optimize
* feat: [CDE-336]: update heartbeat for gitspace instance
* feat: [CDE-336]: update heartbeat for gitspace instance
* feat: [CDE-336]: gitspace active time, and list inactive optimize
* feat: [CDE-336]: gitspace active time, and list inactive optimize
* feat: [CDE-336]: gitspace active time, and list inactive optimize
2024-10-03 10:32:22 +00:00
Ansuman Satapathy a802fc8d29 feat: [CDE-336]: call gitspaces stop only when required. (#2762)
* feat: [CDE-336]: call stop only when required.
* feat: [CDE-336]: call stop only when required.
* feat: [CDE-336]: call stop only when required.
2024-10-02 08:31:28 +00:00
Dhruv Dhruv eeb4688b59 feat: [CDE-357]: Removing error annotation from errors coming from resource limiters. (#2755)
* feat: [CDE-357]: Removing error annotation from errors coming from resource limiters.
2024-10-01 12:05:03 +00:00
Ansuman Satapathy fdafa16687 feat: [CDE-336]: add methods to get inactive (#2754)
* feat: [CDE-336]: move cde action to service and store method for inactive.
* feat: [CDE-336]: update heartbeat for gitspace instance
* feat: [CDE-336]: update heartbeat for gitspace instance
* feat: [CDE-336]: update heartbeat for gitspace instance
* feat: [CDE-336]: update heartbeat for gitspace instance
* feat: [CDE-336]: update heartbeat for gitspace instance
2024-10-01 10:26:27 +00:00
Dhruv Dhruv 077256b69c feat: [CDE-354]: Adding gitspace usage limiter & checking usage before creation and start. (#2745)
* feat: [CDE-354]: Adding gitspace usage limiter & checking usage before creation and start.
2024-09-26 13:50:17 +00:00
Dhruv Dhruv efcfd92517 feat: [CDE-350]: Adding columns for active time start and end in gitspace table. (#2744)
* feat: [CDE-350]: Adding columns for active time start and end in gitspace table.
2024-09-26 10:35:42 +00:00
Patrick Wolf d789e5775e feat: [CODE-2402] : Update all occurences of 'gitness' to 'harness' within comments and markdown. Updated the logo reference (did not delete the Gitness logo directory yet). No active code changes except display strings. (#2684)
* Apply suggestion from code review
* updating images for signin and register page.
* fix: lint
* fix: logo update
* revert golangci
* Adding more strings and updated the logo. Still need to update the signin page images
* Apply suggestion from code review

Updating harness logo to use Open Source logo
* Update all occurences of 'gitness' to 'harness' within comments and markdown. Updated the logo reference (did not delete the Gitness logo directory yet).  No active code changes except display strings.
2024-09-25 00:13:28 +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
Yogesh Chauhan cb616e48a7 feat: [ML-338]: Simplify HarnessIntelligence struct dependencies (#2700)
* Simplify HarnessIntelligence struct dependencies
2024-09-24 06:25:03 +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
Marko Gaćeša 7c83c5520e feat: [CODE-2385]: add fast-forward merge (#2718)
* add fast-forward merge
2024-09-23 11:34:19 +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
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
Marko Gaćeša cafa0148d8 feat: [CODE-2324]: added reviewer-add PR activity entry (#2698)
* added reviewer-add PR activity entry
2024-09-17 15:45:01 +00:00
Marko Gaćeša 1e644163d3 deprecate PR edited field (#2692)
* deprecate PR edited field
2024-09-16 15:44:17 +00:00
Darko Draskovic 060d977433 Add two new settings to branch rules: block merge and force push to branch (#2656)
* Fix rule naming, warn log and use switch case for ref update
* Fix tests
* Refactor isForcePush to remove post-receive only related msg
* Add two new settings to branch rules: block merge and force push to branch
2024-09-12 14:17:13 +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
Yogesh Chauhan 0af264d09f feat: [ML-338]: APIs for Harness Intelligence (#2667)
* Return empty summary/branch for now
* Fix Lint Issues
* feat: [ML-288]: API skeletons for Harness Intelligence
* fix ai pipelines (#2659)

* fix ai pipelines
* Update pipeline name (#2658)

* Update pipeline name
* fix: [ML-288]: update remediation prompt and suggestions (#2652)

* fix: [ML-288]: update remediation prompt and suggestions
* fix: [ML-288]: update url for artifact registry (#2651)

* fix: [ML-288]: update url for artifact registry
* Add snippet to mark code as written by Harness Intelligence (#2628)

* Add snippet to mark code as written by Harness Intelligence
* Add snippet to mark code as written by Harness Intelligence (#2626)

* Add snippet to mark code as written by Harness Intelligence
* feat: [ML-288]: link to harness artifact registry (#2619)

* some linting fixes
* feat: [ML-288]: link to harness artifact registry
* feat: [ML-286]: updating pipeline suggestions (#2620)

* updating suggestions
* feat: [ML-286]: updating pipeline suggestions
* feat: [ML-288]: adding slackbot (#2603)

* updating slack responses
* prevent responding to any bot messages
* feat: [ML-288]: adding slackbot
* throw error for commit
* commit stubbed
* feat: [ML-286]: moving stubbed response earlier in execution (#2602)

* feat: [ML-286]: moving stubbed response earlier in execution
* feat: [ML-286]: adding stubbed response for analyze execution (#2600)

* updating branch name
* adding updated-main for analyse-execution endpoint
* feat: [ML-286]: adding stubbed response for analyze execution
* Update AnalyseExecutionOutput to contain multi file diff (#2592)

* Create branch and commit changes on analyse
* Simplify AnalyseExecutionOutput to contain only high level summary and branch
* Update AnalyseExecutionOutput to contain multi file diff
* updating endpoints for unscripted demo (#2594)

* cleaning up code, adding suggested pipeline response
* updating suggestions api
* updating endpoints for unscripted demo
* Stub out generate pipeline yaml
2024-09-09 17:49: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
Kapil Garg 029a033be7 add migration to drop deprecated gateway columns (#2670)
* update cde gateway full sync query
* add migration to drop deprecated gateway columns
2024-09-09 08:30:49 +00:00
Johannes Batzill 77b01718bd feat: [CODE-2179]: Add error message to protection rule violation error responses (#2665) 2024-09-06 18:54:15 +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
Dhruv Dhruv 1c8a47636f fix: [CDE-316]: Increasing timeout for gitspace start/stop to 10m from 5m. (#2661)
* fix: [CDE-316]: Changing context of instance update to non-canceable context during gitspace start/stop.
* fix: [CDE-316]: Changing context of instance update to non-canceable context during gitspace start/stop.
* fix: [CDE-316]: Increasing timeout for gitspace start/stop to 10m from 5m.
2024-09-05 11:22:17 +00:00
Ansuman Satapathy f8f54c43c7 feat: [CDE-202]: remove extra spaceID (#2641)
* feat: [CDE-202]: remove extra spaceID
* feat: [CDE-202]: remove extra spaceID
* feat: [CDE-202]: remove extra spaceID
2024-09-03 14:07:52 +00:00
Ansuman Satapathy ec7eca7491 feat: [CDE-202]: infra provider resource cache (#2639)
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
2024-09-03 11:58:48 +00:00
Ansuman Satapathy 5cfd41ae1a feat: [CDE-202]: infra provider resource cache (#2637)
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
2024-09-03 09:59:29 +00:00
Marko Gaćeša ccf267f1cc update pull request edited field after successful merge (#2625)
* update pull request edited field after successful merge
2024-09-02 08:59:50 +00:00
Karan Saraswat 57368eba55 fix: [CODE-2316]: Send empty list in case of no repos present in space (#2613)
* fix: [CODE-2316]: Send empty list in case of no repos present in space
2024-08-29 19:34:10 +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
Ansuman Satapathy 74e00cbcdf feat: [CDE-244]: API for infraprovider template (#2609)
* feat: [CDE-244]: API for infraprovider template
2024-08-29 04:45:29 +00:00
Marko Gaćeša 6b12b45950 add log entries for rejected merges (#2604)
* add log entries for rejected merges
2024-08-28 12:51:42 +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
Akhilesh Pandey 0578be8afe feat: [CODE-1941]: user group changes (#2134)
* feat: [CODE-1941]: remove usergroup filter from request
* feat: [CODE-1941]: decrement page for harness-core
* feat: [CODE-1941]: update pagination request
* feat: [CODE-1941]: change interface from find to list
* feat: [CODE-1941]: change reviewer add permissions
* feat: [CODE-1941]: comments
* feat: [CODE-1941]: comments
* fix wire issues
* feat: [CODE-1941]: remove users from the db table usergroups
* feat: [CODE-1941]: annotate errors
* feat: [CODE-1941]: annotate errors
* feat: [CODE-1941]: sql style
* feat: [CODE-1941]: revert common.go change for parse limit
* feat: [CODE-1941]: move usergroup listing to space level
* feat: [CODE-1941]: update usergroup listing and update delete to push permission
* feat: [CODE-1941]: Update combined listing
* feat: [CODE-1941]: Update combined listing
* feat: [CODE-1941]: format
* feat: [CODE-1941]: rebase
* feat: [CODE-1941]: separate db struct for usergroup.go
* feat: [CODE-1941]: change usergroup filter to default query and review comments
* feat: [CODE-1941]: change usergroup filter to default
* feat: [CODE-1941]: change return type for search service interface
* feat: [CODE-1941]: change return type for search service interface
* feat: [CODE-1941]: change return type for search service interface
* feat: [CODE-1941]: Search Service interface and wire changes
* feat: [CODE-1941]: Search Service interface and wire changes
* feat: [CODE-1941]: Search UserGroups Handler change - codeformat
* feat: [CODE-1941]: Search UserGroups Handler change - codeformat
* feat: [CODE-1941]: Search UserGroups Handler change - codeformat
* feat: [CODE-1941]: Search UserGroups Handler change
* feat: [CODE-1941]: Big change: New LOGIC for UserGroup Reviewers
* feat: [CODE-1941]: DB changes
* feat: [CODE-1941]: listing api
* feat: [CODE-1941]: mapping methods
* feat: [CODE-1941]: list method for pullreq_reviewers db
* feat: [CODE-1941]: database queries
* feat: [CODE-1941]: database queries
* feat: [CODE-2058]: dbstore changes
* feat: [CODE-1941]: Controller and Database code
* feat: [CODE-1941]: update reviewer_add.go code
* feat: [CODE-1941]: update reviewers and usergroup db migrations
* feat: [CODE-1941]: Update API ops
* feat: [CODE-1941]: Update DB ops for reviewers
* feat: [CODE-1941]: db migration update
* feat: [CODE-1941]: db migration update
* feat: [CODE-1941]: code comments
* feat: [CODE-1941]: update migration numbering
* feat: [CODE-1941]: Add postgresql migrations
* feat: [CODE-1941]: Update DB ops for reviewers

feat: [CODE-1941]: Update API ops

feat: [CODE-1941]: update reviewers and usergroup db migrations

feat: [CODE-1941]: update reviewer_add.go code

feat: [CODE-1941]: break pr

feat: [CODE-1941]: break pr

feat: [CODE-1941]: Update migration numbering
* feat: [CODE-1941]: create table usergroups
* feat: [CODE-1941]: table migrations
* feat: [CODE-1941]: user group changes
2024-08-26 15:35:27 +00:00