Commit Graph

65 Commits (fd9a1ad4003c17a3f6146379a77aaa92e95d999f)

Author SHA1 Message Date
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 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
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
Atefeh Mohseni Ejiyeh 5efca19288 feat: [CODE-2375]: Support import v2 for labels (#2695) 2024-10-21 20:23:36 +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
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 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
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
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
Marko Gaćeša 34292b022e fix space path handling (#2577)
* fix space path handling
2024-08-26 13:13:25 +00:00
Yogesh Chauhan 59614e73f4 feat: [ML-302]: Framework For Harness Intelligence APIs (#2547)
* feat: [ML-302]: Framework For Harness Intelligence APIs
2024-08-20 22:05:29 +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 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
Dhruv Dhruv afd24f911b feat: [CDE-146]: API to list all gitspaces for a user. (#2209)
* feat: [CDE-146]: Addressing review comments-
restructuring method.
* feat: [CDE-146]: API to list all gitspaces.
* feat: [CDE-146]: API to list all gitspaces.
* feat: [CDE-146]: API to list all gitspaces for a user.
2024-07-15 09:43:50 +00:00
Ansuman Satapathy 18226c8914 feat: [CDE-137]: check valid code repository for CDE use. (#2197)
* feat: [CDE-137]: check valid code repository for CDE use.
* feat: [CDE-137]: check valid code repository for CDE use.
* feat: [CDE-137]: check valid code repository for CDE use.
2024-07-11 05:47:29 +00:00
Dhruv Dhruv 87157de7fa feat: [CDE-127]: Adding changes to include logging in container orchestration's start flow. (#2192)
* feat: [CDE-96]: Renaming reusable scanner as scanner doesn't support resetting the reader. Removing closec as return param in livelog.Tail method. CLosing the handler channel when the stream is closed, this ensures the consumer to know the channel is closed. Adding a check in the render.StreamSSE to close the stream when the events channel is closed and drained.
* feat: [CDE-127]: Changes to enable log stream API for gitspaces. Adding close channel to the logstream Tail method. Changes to use a default host and working dir from config for a running gitspace instance's URL. Change to append gitspaces to the bind mount of the gitspace container in the container orchestrator instead of in the config provider.
* Initial commit
* feat: [CDE-127]: Removing streams map from StatefulLogger. Flushing the stream every time the invoking function is closed.
* feat: [CDE-127]: Removing streams map from StatefulLogger. Flushing the stream every time the invoking function is closed.
* feat: [CDE-127]: Adding flush stream logic to delete gitspace in orchestrator. Linting.
* feat: [CDE-127]: Addressing review comments.
* feat: [CDE-127]: Adding changes to make logutil.StatefulLogger a wrapper on livelog.LogStream and adding initialisation and flush functions.
* feat: [CDE-127]: Adding changes to make logutil.StatefulLogger a wrapper on livelog.LogStream and adding initialisation and flush functions.
* feat: [CDE-127]: Adding changes to include logging in container orchestration's start flow.
2024-07-10 10:25:41 +00:00
Ansuman Satapathy bf0890bd07 feat: [CDE-127]: updated gitspace delete logic, fixed listing (#2183)
* fixed events list API query
* feat: [CDE-127]: fixed events list API
* fixed events list API query
* feat: [CDE-127]: updated gitspace delete logic, fixed listing
2024-07-09 14:03:54 +00:00
Ansuman Satapathy f78439593c gitspaces API Implementation (#2136)
* feat: [CDE-83]: fixed linting issues.
* feat: [CDE-83]: fixed linting issues.
* feat: [CDE-83]: fixed linting issues.
* feat: [CDE-83]: fixed types
* feat: [CDE-83]: fixed types
* feat: [CDE-83]: fixed types
* feat: [CDE-83]: fixed types
* feat: [CDE-83]: fixed types
* feat: [CDE-83]: fixed DB comments.
* feat: [CDE-83]: fixed DB comments.
* feat: [CDE-83]: Implemented the action API
* gitspaces API Implementation
2024-07-09 05:23:02 +00:00
Johannes Batzill 28b55f0e53 Move Register/Login/Logout (#2172)
* move register/login/logout, git resources, and system check APIs outside of auth
2024-07-08 17:53:45 +00:00
Dhruv Dhruv f3d3f7392a feat: [CDE-93]: List API to fetch gitspace events. (#2176)
* feat: [CDE-93]: Adding openapi spec.
* feat: [CDE-93]: List API to fetch gitspace events.
2024-07-08 08:29:56 +00:00
Ansuman Satapathy 728a419267 feat: [CDE-83]: Added scaffolding for APIs for gitspaces (#2173)
* feat: [CDE-83]: Added scaffolding for APIs
* feat: [CDE-83]: Added scaffolding for APIs
2024-07-05 13:03:10 +00:00
Abhinav Singh b333f42142 feat: add users check (#2132) 2024-07-01 20:45:12 +00:00
Marko Gaćeša 0d72a20450 ssh public keys: db and api (#2058) 2024-05-27 14:26:21 +00:00
Darko Draskovic adf041d747 Add repo summary endpoint (#2037) 2024-05-23 18:45:28 +00:00
Atefeh Mohseni Ejiyeh c365ef246a Support Public Access (#2021) 2024-05-23 04:56:26 +00:00
Abhinav Singh a576087694 feat: add etag for raw api (#2018) 2024-05-03 20:03:37 +00:00
Enver Biševac ed97ff8398 [code-1822-maint] minor requested changes (#2017) 2024-04-26 23:51:26 +00:00
Enver Biševac 723377482c [code-1822] Download repository as archive using `git archive` command (#2010) 2024-04-26 20:03:51 +00:00
Johannes Batzill 9e7f80ebe0 Code Suggestions - Backend Support (#2006) 2024-04-26 16:54:50 +00:00
Akhilesh Pandey 4748966078 feat: [CODE-1741]: add new API endpoint for principal find operation (#1227) 2024-04-25 13:10:56 +00:00
Darko Draskovic e2689a3b40 Add push file size limit and report func (and use it in githook) (#1173) 2024-04-24 16:31:18 +00:00
Johannes Batzill 5652ca7bb3 Add Repo Path Listing API (#1197) 2024-04-10 20:04:08 +00:00
Enver Bisevac 227aac90b5 [code-1524] audit trails package (#1176) 2024-04-08 21:13:57 +00:00
Johannes Batzill 39a998eacd Adding Repo Level Settings (#1145) 2024-03-28 03:36:15 +00:00
Johannes Batzill e96ab4159b Add alternate_object_dirs support to githook handlers (#1141) 2024-03-26 23:52:49 +00:00
Atefeh Mohseni-Ejiyeh 5d0d28e4a3 Support Space Soft Delete, Restore, and Purge (#1076) 2024-03-21 23:34:19 +00:00
Johannes Batzill 73ffe71afe Log error translation under requestID to improve traceability (#1070) 2024-02-27 06:05:42 +00:00
Marko Gacesa f8f1453de1 add new API: list status checks for a pullreq (#1042) 2024-02-22 10:39:25 +00:00
Atefeh Mohseni-Ejiyeh fc9e77c91c Support soft delete, restore and purge repos plus a cleanup job for old deleted repos (#1005) 2024-02-14 01:39:39 +00:00
Johannes Batzill adf2046a94 [MISC] Move `UID` to `Identifier` to match Harness Standards (#992) 2024-01-29 23:29:53 +00:00
Enver Bisevac 7f7f8bf625 [code-1288] new diff api features [paths, line expanders] (#968) 2024-01-23 12:36:04 +00:00
Atefeh Mohseni-Ejiyeh 29f781201f support update default branch (#973) 2024-01-20 07:10:16 +00:00
Vistaar Juneja 76e3c06b6b Templates support for v1 pipelines (#955) 2024-01-12 11:02:31 +00:00
Johannes Batzill 53555544a2 [Webhook] Add UID field (#936) 2023-12-29 16:39:45 +00:00
Johannes Batzill 1d8d50a188 [Githook] Introduce InMemory Githook (#916) 2023-12-19 15:50:15 +00:00