Commit Graph

465 Commits (release/3.0.0)

Author SHA1 Message Date
Vikyath Harekal 7b275f29e7 feat: [CDE-217]: fix migration (#2489)
* feat: [CDE-217]: fix migration
2024-08-13 06:43:53 +00:00
Dhruv Dhruv 1e3c910c07 feat: [CDE-231]: Adding logs method to orchestrator and fixing logic to catch cmd execuction errors in devcontainer.Exec. (#2472)
* feat: [CDE-231]: Adding logs method to orchestrator and fixing logic to catch cmd execuction errors in devcontainer.Exec.
2024-08-13 04:27:04 +00:00
Ansuman Satapathy f247c70311 feat: [CDE-192]: ignore deleted spaces during fetching gitspaces for account (#2465)
* feat: [CDE-192]: ignore deleted spaces during fetching gitspaces for account
2024-08-11 08:30:37 +00:00
Ansuman Satapathy 65b3cabf8f feat: [CDE-192]: validate url scheme for repos for gitspaces (#2464)
* feat: [CDE-192]: validate url scheme for repos for gitspaces
2024-08-11 07:04:10 +00:00
Vikyath Harekal 9452c7b21a feat: [CDE-217]: auto increment id (#2463)
* feat: [CDE-217]: auto increment id
2024-08-11 06:15:37 +00:00
Dhruv Dhruv b1b4111271 fix: [CDE-229]: Updating code-repo mgmt inside gitspace container. (#2460)
* feat: [CDE-230]: Cleaning logs from command exec inside gitspace container.
* fix: [CDE-229]: Updating code-repo mgmt inside gitspace container.
2024-08-11 05:22:58 +00:00
Vikyath Harekal 86be5e2e8d feat: [CDE-217]: Migration: Fix column and constraint (#2458)
* feat: [CDE-217]: address comments
* feat: [CDE-217]: Migration: Fix column and constraint
* feat: [CDE-217]: Migration: Fix column and constraint
2024-08-10 07:00:07 +00:00
Johannes Batzill 68af08e69e feat: [CODE-2212]: Improve SSH Configuration (#2446) 2024-08-09 16:21:41 +00:00
Dhruv Dhruv e1979c0b24 feat: [CDE-228]: Remove raw template params from the list of final params passed to the provider. (#2452)
* feat: [CDE-228]: Remove raw template params from the list of final params passed to the provider.
2024-08-09 15:49:11 +00:00
Ansuman Satapathy a8ea70c96d feat: [CDE-192]: use json library to serde (#2451)
* feat: [CDE-192]: use json library to serde
* feat: [CDE-192]: use json library to serde
* feat: [CDE-192]: use json library to serde
* feat: [CDE-192]: use json library to serde
2024-08-09 14:23:31 +00:00
Darko Draskovic d2fe8b7da0 Refactor OR pr label filter to AND filter (#2433)
* Refactor OR pr label filter to AND filter
2024-08-09 11:23:46 +00:00
Dhruv Dhruv 008aa5c17a feat: [CDE-227]: Change SSH port for VSCode. (#2445)
* feat: [CDE-227]: Change SSH port for VSCode.
2024-08-09 08:31:14 +00:00
Dhruv Dhruv e400a6df44 feat: [CDE-226]: Migrations to drop iprov_opentofu_template column. (#2444)
* feat: [CDE-226]: Migrations to drop iprov_opentofu_template column.
2024-08-09 07:34:07 +00:00
Ansuman Satapathy 2146145ff9 fix: [CDE-192]: fix incorrect resource reference (#2441)
* fix: [CDE-192]: fix incorrect resource reference
* fix: [CDE-192]: fix incorrect resource reference
2024-08-09 04:18:04 +00:00
Vikyath Harekal 1748e57189 feat: [CDE-212]: Add migration for new table ovh_task_details (#2428)
* feat: [CDE-212]: remove cascade delete
* feat: [CDE-212]: update index
* feat: [CDE-212]: update constraint
* feat: [CDE-212]: rename table to delegate_provision_details
* feat: [CDE-212]: Add migration for new table ovh_task_details
2024-08-08 10:50:05 +00:00
Ansuman Satapathy c94fd94d77 feat: [CDE-192]: updated missing swagger (#2430)
* feat: [CDE-192]: updated missing swagger
* feat: [CDE-192]: updated missing swagger
2024-08-08 06:49:37 +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 b1ac141460 Add list labels per pr to pr list (#2372) (#2387)
* Add list labels per pr to pr list (#2372)

* Refactor to pullreq(s) backfill funcs
* Add list labels per pr to pr list
2024-08-07 15:32:30 +00:00
Marko Gaćeša 4b289c1232 feat: [CODE-2153]: add limits on PR text fields (#2412) 2024-08-07 10:07:41 +00:00
Ansuman Satapathy 9fc9a498e2 feat: [CDE-192]: modularize gitspace services (#2404)
* feat: [CDE-192]: resource identifier empty
* feat: [CDE-192]: resource identifier empty
* feat: [CDE-192]: resource identifier empty
* feat: [CDE-192]: resource identifier empty
* feat: [CDE-192]: address comments
* feat: [CDE-192]: split config and resource creation
* feat: [CDE-192]: split config and res creation
* feat: [CDE-192]: modularize gitspace services
2024-08-07 08:27:29 +00:00
Dhruv Dhruv 52bfdfb3f8 feat: [CDE-220]: Adding gitspace instance identifier to infra provisioning. Adding checks to ensure infra status is always same as required. Adding infra status type error enum. Adding util method to derive gitspace container name. Cleaning parameters to use values instead of references. Refactoring fields for infra struct to make them more explicit. Adding config to read agent port and pass it on to infra provider for provisioning and finding. (#2411)
* feat: [CDE:220]: Adding util method to get working dir from repo name.
* feat: [CDE:220]: Addressing review comments.
* feat: [CDE-220]: Adding gitspace instance identifier to infra provisioning. Adding checks to ensure infra status is always same as required. Adding infra status type error enum. Adding util method to derive gitspace container name. Cleaning parameters to use values instead of references. Refactoring fields for infra struct to make them more explicit. Adding config to read agent port and pass it on to infra provider for provisioning and finding.
2024-08-07 02:29:10 +00:00
Ansuman Satapathy ce8b17bb93 feat: [CDE-192]: handle docker-host for non darwin internal url (#2406)
* feat: [CDE-192]: handle docker-host for non darwin internal url
* feat: [CDE-192]: handle docker-host for non darwin internal url
2024-08-06 11:10:42 +00:00
Johannes Batzill 8e7398d362 Inject X-Allow-Public-Access Header For UI (#2300) 2024-08-05 23:39:16 +00:00
Ansuman Satapathy 6338af6336 feat: [CDE-192]: modularize gitspace services (#2396)
* feat: [CDE-192]: modularize gitspace services
* feat: [CDE-192]: modularize gitspace services
2024-08-05 10:00:48 +00:00
Dhruv Dhruv 34a07f4d8b feat: [CDE-192]: Adding infra template and provisioned stores and using those in infra provisioning flows. (#2392)
* Addressing review comments and fixing lint issues.
* feat: [CDE-192]: modularize gitspace services
* feat: [CDE-192]: modularize gitspace services
* feat: [CDE-192]: Adding infra template and provisioned stores and using those in infra provisioning flows.
2024-08-05 07:48:47 +00:00
Darko Draskovic 497c426a01 Add list labels per pr to pr list (#2372)
* Refactor to pullreq(s) backfill funcs
* Add list labels per pr to pr list
2024-08-02 11:57:09 +00:00
Darko Draskovic bb77a835cf Add pullreq label activities (#2296)
* Add colors to label activity info
* Refactor FindValueByLabelID query
* Simplify more label activity assign logic
* Simplify label activity assign logic
* Add pullreq label activities
2024-08-01 19:20:54 +00:00
Darko Draskovic f392fb1015 Add restricted by query label count when using query and sanitize empty label (value) text (#2335)
* Add restricted by query label count when using query and sanitize empty label (value) text
2024-08-01 15:38:21 +00:00
Dhruv Dhruv 9d5071b45c feat: [CDE-203]: Making infra processing async. (#2325)
* Cleaning the flow around gitspace instance update.
* Renaming params and param schema types.
* Correcting comments.
* feat: [CDE-203]: Making infra processing async.
* feat: [CDE-203]: Making infra processing async.
* feat: [CDE-203]: Making infra processing async.
2024-08-01 10:01:31 +00:00
Shashwat Sachan 1e6330a589 feat: [CDE-195]: gitness use repo ref (#2336)
* feat: [CDE-195]: gitness use repo ref
* feat: [CDE-195]: UI changes for type and ref.
* feat: [CDE-195]: gitness use repo ref
2024-07-31 14:30: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
Kapil Garg 3edc1db615 feat: [CDE-195]: Add factory constructor method to create factory with providers map (#2323)
* update method name
* feat: [CDE-195]: Add factory constructor method to create factory with providers map
2024-07-30 10:49:24 +00:00
Ansuman Satapathy a3203ef284 feat: [CDE-195]: missing repo type is treated as unknown for gitspaces (#2317)
* feat: [CDE-195]: missing repo type is treated as unknown for gitspaces
2024-07-30 08:14:49 +00:00
Ansuman Satapathy 42af216dc7 feat: [CDE-195]: use dependency-injection for scm providers for gitspaces. (#2308)
* feat: [CDE-195]: use dependency-injection for scm providers for gitspaces.
* feat: [CDE-195]: use dependency-injection for scm providers for gitspaces.
* feat: [CDE-195]: use dependency-injection for scm providers for gitspaces.
2024-07-30 07:02:59 +00:00
Ansuman Satapathy f7928f1f77 feat: [CDE-195]: autoset git user config for internal repos (#2304)
* feat: [CDE-195]: autoset git user config for internal repos
2024-07-29 06:52:07 +00:00
Vistaar Juneja 722caeddf8 fix: [CI-13599]: use latest version of docker (#2288)
* fix merge conflicts
* fix pr checks
* fix go mod tidy
* fix: [CI-13599]: use latest version of docker
2024-07-26 13:04:45 +00:00
Ansuman Satapathy b6034a25aa feat: [CDE-195]: read devcontainer.json directly for gitness (#2294)
* feat: [CDE-195]: Run VS Code Web as non-root user.
* feat: [CDE-195]: read devcontainer.json directly for gitness
2024-07-26 12:44:36 +00:00
Dhruv Dhruv 9232029c74 WIP (#2284)
* feat: [CDE-194]: Reverting docker port range changes.
* feat: [CDE-194]: Removing extra types.
* feat: [CDE-194]: Restructuring code around port publishing and forwarding.
* WIP
* WIP
* WIP
* WIP
2024-07-26 06:26:22 +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
Vistaar Juneja d36bf54f99 fix: get pipelines working with rancher desktop (#2286)
* fix: get pipelines working with rancher desktop
2024-07-25 12:49:52 +00:00
Marko Gaćeša c4b15ab5a9 fix build (#2287)
* fix build
2024-07-25 11:36:53 +00:00
Marko Gaćeša 7b17cc7831 add pr-updated webhook (#2247)
* add pr-updated webhook
2024-07-25 09:56:41 +00:00
Marko Gaćeša d687080cf4 pr reviewer removal (#2269)
* add reviewer principal ID to activity payload
* pr reviewer removal
2024-07-25 09:55:41 +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 fb88cb34ab feat: [CDE-182]: Using go:embed to load logo files. (#2260)
* feat: [CDE-182]: Using go:embed to load logo files.
2024-07-22 13:12:15 +00:00
Dhruv Dhruv bed2659e03 feat: [CDE-182]: Fixing clone check. (#2259)
* feat: [CDE-182]: Fixing clone check.
2024-07-22 11:24:33 +00:00
Dhruv Dhruv d159df6b7b feat: [CDE-182]: Changes to replace default vs code web icons with gitspaces icons. (#2258)
* feat: [CDE-182]: Changes to replace default vs code web icons with gitspaces icons.
2024-07-22 10:34:02 +00:00
Ritik Kapoor 3539266fb3 fix: [code-2114] API redirecting to Login (#2245)
* fix: [code-2114] return Unauthorized for anonymous principal call to user api
* fix: [code-2114]   API redirecting to Login
2024-07-19 18:46:22 +00:00
Ansuman Satapathy 0bbcc98b61 feat: [CDE-142]: extract gitspace find to its own svc (#2251)
* feat: [CDE-142]: extract gitspace find to its own svc
* feat: [CDE-142]: extract gitspace find to its own svc
* feat: [CDE-142]: extract gitspace find to its own svc
* feat: [CDE-142]: extract gitspace find to its own svc
* feat: [CDE-142]: extract gitspace find to its own svc
2024-07-19 11:43:43 +00:00
Ansuman Satapathy b3d9a58c5c feat: [CDE-142]: specify resource for a gitspace in api call (#2249)
* feat: [CDE-142]: specify resource for a gitspace in api call
2024-07-19 05:56:35 +00:00
Marko Gaćeša 340cdd659c feat: [CODE-2086]: backfill PR stats data for list PRs API (#2234)
* backfill PR stats data for list PRs API
2024-07-18 12:18:03 +00:00
Enver Biševac da44afe021 improve audit logs (#2242)
* improve audit logs
2024-07-18 12:15:31 +00:00
Dhruv Dhruv dfb69afade fix: [CDE-179]: Fixing gitspaces OpenAPI spec. (#2246)
* fix: [CDE-179]: Fixing gitspaces OpenAPI spec.
2024-07-18 09:19:34 +00:00
Dhruv Dhruv bb7433ef9a feat: [CDE-175]: Changing all shell commands from bash to sh. (#2244)
* feat: [CDE-175]: Changing all shell commands from bash to sh.
2024-07-18 08:01:37 +00:00
Abhinav Singh ba934bb4e2 feat: [CODE-2127]: fix pr count with filter (#2238)
* feat: [CODE-2127]: fix pr count with filter
2024-07-17 22:49:36 +00:00
Dhruv Dhruv ed92f75f68 feat: [CDE-173]: Running IDE and related services on boot up. Changing entrypoint cmd for quicker stopping. (#2240)
* feat: [CDE-173]: Running IDE and related services on boot up. Changing entrypoint cmd for quicker stopping.
2024-07-17 13:12:49 +00:00
Dhruv Dhruv 1af6be80e9 feat: [CDE-174]: Adding logic to restart gitspaces. (#2239)
* feat: [CDE-174]: Linting
* feat: [CDE-174]: Updating the entrypoint to trap SIGTERM.
* feat: [CDE-174]: Adding logic to restart gitspaces.
2024-07-17 09:28:29 +00:00
Dhruv Dhruv 411eda9819 Changing order of execution for postCreateCommand and using repo name as working dir (#2236)
* Changing order of execution for postCreateCommand and using repo name as working dir
2024-07-16 14:23:22 +00:00
Ansuman Satapathy 767bb717d9 feat: [CDE-142]: provider interface pass pointers. (#2232)
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
2024-07-16 13:06:08 +00:00
Ansuman Satapathy b7e720c220 feat: [CDE-142]: gitspace count query optimization (#2230)
* feat: [CDE-142]: gitspace count query optimization
* feat: [CDE-142]: gitspace count query optimization
2024-07-16 07:59:17 +00:00
Dhruv Dhruv 6e516183fd feat: [CDE-163]: Moving dir creation and deletion to infra provider. Refactoring gitspace env variables. Renaming unprovisioning to deprovisioning. (#2231)
* feat: [CDE-163]: Moving dir creation and deletion to infra provider. Refactoring gitspace env variables. Renaming unprovisioning to deprovisioning.
2024-07-16 07:59:02 +00:00
Johannes Batzill 7d5ac7b45c fix: [CODE-2114]: Return 404 if anonymous makes user restricted call (#2225) 2024-07-15 19:07:14 +00:00
Enver Biševac 7c2c732c9f fix complex file extensions like tar.gz (#2143)
* fix complex file extensions like tar.gz
2024-07-15 14:41:58 +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
Dhruv Dhruv b4f35ddbbe feat: [CDE-156]: Changes to install SSH server only when the IDE is VS Code. (#2222)
* feat: [CDE-156]: Changes to install SSH server only when the IDE is VS Code.
2024-07-15 09:21:31 +00:00
Dhruv Dhruv 8315560180 feat: [CDE-153]: Cloning the code inside the Gitspace using the given branch. (#2220)
* feat: [CDE-153]: Cloning the code inside the Gitspace using the given branch.
2024-07-15 08:13:06 +00:00
Dhruv Dhruv 2785206535 fix: [CDE-150]: In logstream, adding locking and panic recovery around a subscriber's publish method. Adding check in the stream's publish method to not publish if the sub is closed. Closing the err channel in the log stream API handler. (#2218)
* Formatting.
* fix: [CDE-150]: In logstream, adding locking and panic recovery around a subscriber's publish method. Adding check in the stream's publish method to not publish if the sub is closed. Closing the err channel in the log stream API handler.
2024-07-15 08:10:59 +00:00
Ansuman Satapathy 56df9da6b8 fix: [CDE-141]: gitspace start stop (#2216)
* fix: [CDE-141]: gitspace start stop
* fix: [CDE-141]: gitspace start stop
* fix: [CDE-141]: gitspace start stop
2024-07-15 06:36:46 +00:00
Dhruv Dhruv b9d3bb4d2b feat: [CDE-140]: Adding docker machine host name config to identify the public host name on which the docker host is running. Updated the docker config to read from the default docker env variables if config values are not set. Updated the events timestamp to use nanoseconds. Fixed the working directory response and cleaned the logic of how the gitspace instance url is generated. Updated the scm service to parse repo name in a provider agnostic manner. (#2201)
* feat: [CDE-140]: Fixing ProvideGitspaceContainerOrchestratorConfig.
* feat: [CDE-140]: Fixing ProvideGitspaceContainerOrchestratorConfig.
* feat: [CDE-140]: Addressing review comments.
* feat: [CDE-140]: Reverting changes done for docker config default values. Adding default value of GITNESS_GITSPACE_DEFAULT_BIND_MOUNT_SOURCE_BASE_PATH and GITNESS_DOCKER_HOST to Dockerfile. Adding new column in gitspace_events table for storing event timestamp in nanoseconds and corresponding migrations.
* Lingting.
* feat: [CDE-140]: Adding docker machine host name config to identify the public host name on which the docker host is running. Updated the docker config to read from the default docker env variables if config values are not set. Updated the events timestamp to use nanoseconds. Fixed the working directory response and cleaned the logic of how the gitspace instance url is generated. Updated the scm service to parse repo name in a provider agnostic manner.
2024-07-13 04:35:20 +00:00
Deepesh Kumar 0a5ed06f02 feat: [CDE-129]: added flag gitspace_enabled (#2214)
* feat: [CDE-129]: fixed lint
* feat: [CDE-129]: fixed lint
* feat: [CDE-129]: updated flag gitspace_enabled
* feat: [CDE-129]: updated webpack
* feat: [CDE-129]: updated webpack
* feat: [CDE-129]: added flag gitspace_enabled
2024-07-13 04:28:07 +00:00
Ansuman Satapathy 31ae886d00 fix: [CDE-141]: corrected infraprovider auto-creation check (#2210)
* fix: [CDE-141]: corrected infraprovider auto-creation check
2024-07-12 16:56:53 +00:00
Ansuman Satapathy 050415afdf feat: [CDE-137]: add a service layer for infraproviders, autoadd infraprovider (#2204)
* feat: [CDE-137]: add missing type.
* feat: [CDE-137]: add missing type.
* feat: [CDE-137]: add missing type.
* feat: [CDE-137]: add missing type.
* feat: [CDE-137]: add a service layer for infraproviders, autoadd infraprovider
2024-07-12 08:45:10 +00:00
Marko Gaćeša 4ac42fc6c9 Add additions and deletions to PRs (#2196) 2024-07-11 10:01:17 +00:00
Dhruv Dhruv 94b0f0178a feat: [CDE-136]: Removing password authentication for code-server and breaking setup in installation and run. (#2202)
* feat: [CDE-136]: Removing password authentication for code-server and breaking setup in installation and run.
2024-07-11 08:30:21 +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
Johannes Batzill 76682ad400 [FIX] update unresolved comment count when suggestions are applied (#2198) 2024-07-10 23:05:22 +00:00
Kapil Garg dd143cc37e add migration to add columns in infra_provisioned table (#2154)
* rename migration files
* change column type to TEXT
* change column type to TEXT
* update migration scripts
* add migration to add columns in infra_provisioned table
2024-07-10 13:35:50 +00:00
Dhruv Dhruv e712903728 feat: [CDE-94]: Adding events for gitspace transitions. (#2195)
* feat: [CDE-94]: Fixing gitspace url.
* feat: [CDE-94]: Linting
* feat: [CDE-94]: Adding events for gitspace transitions.
2024-07-10 13:06:38 +00:00
Ansuman Satapathy 61f1bc55fe feat: [CDE-137]: made gitspace actions async and refactored orchestrator to handle errors correctly (#2194)
* feat: [CDE-137]: made gitspace actions async and refactored orchestrator to handle errors correctly
2024-07-10 10:44:36 +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 6e525fca4a feat: [CDE-127]: read multi-table and multi query data in a single SQL txn (#2193)
* feat: [CDE-127]: starting and stopping states.
* feat: [CDE-127]: read multi-table and multi query data in a single SQL txn
2024-07-10 07:10:54 +00:00
Dhruv Dhruv d577102d5e feat: [CDE-127]: Adding changes to include logging in container orchestration. (#2178)
* feat: [CDE-127]: Linting.
* Merge branch 'refs/heads/main' into CDE-127

# Conflicts:
#	app/gitspace/orchestrator/container/embedded_docker.go
#	cmd/gitness/wire.go
* feat: [CDE-127]: Addressing review comments.
* 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]: 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]: 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 stop flow.
* feat: [CDE-127]: Adding changes to include logging in container orchestration's start flow.
2024-07-09 21:13:47 +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
Dhruv Dhruv 34df7cf137 feat: [CDE-94]: Adding orchestration to start, stop and delete Gitspaces. (#2159)
* Addressing review comments.
* feat: [CDE-94]: Rebasing PR. Adding StartResponse to store container orchestration start response. Refactoring provisioner to clean the method params.
* feat: [CDE-94]: Using ports returned by the container orchestrator
* feat: [CDE-94]: Adding orchestrtion to start, stop and delete Gitspaces.
2024-07-08 20:10:44 +00:00
Karan Saraswat b10fa3ea76 fix for making imported ADO repos' visibility the same as it's project's visibility (#2179)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into ks/CODE-2073
* removed extra check for azure provider type for importing
* fix for making imported ADO repos' visibility the same as it's project's visibility
2024-07-08 18:39:48 +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
Karan Saraswat c6f6d83e74 fix for making imported ADO repos' visibility the same as it's project's visibility (#2174)
* fix for making imported ADO repos' visibility the same as it's project's visibility
2024-07-08 17:39:50 +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
Marko Gaćeša 5427130a42 pull request import (#2121)
* bypass lint
* bump golang version
* using types from migrator
* moving Importing to the RepositoryOutput
* minor changes; improved unit tests
* pr comments
* pr import
* pull request import
2024-07-06 00:46:36 +00:00
Dhruv Dhruv d46516baa7 feat: [CDE-115]: Adding implementation for infra_provisioner
* feat: [CDE-115]: Rebasing
* feat: [CDE-115]: Rebasing
* feat: [CDE-115]: Rebasing
* feat: [CDE-115]: Adding default value for docker host
* feat: [CDE-115]: Rebasing
* Rebasing
* Rebasing
* Rebasing
2024-07-05 15:07:07 +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
Dhruv Dhruv 3ccd39df01 feat: [CDE-126]: Addressing review comments. (#2171)
* feat: [CDE-126]: Addressing review comments.
* feat: [CDE-126]: Addressing review comments.
* feat: [CDE-126]: Addressing review comments.
* feat: [CDE-126]: Addressing review comments.
2024-07-05 11:20:09 +00:00
Dhruv Dhruv 3acded8ed8 feat: [CDE-92]: Container orchestrator and IDE service
* feat: [CDE-92]: Removing Client method from infraprovider interface and using DockerClientFactory to generate docker clients. Using go templates to substitute values in gitspace scripts. Setting a default base path for gitspaces if not provided.
* Rebasing
* feat: [CDE-92]: Addressing review comments.
* Rebasing
* Rebasing
* feat: [CDE-92]: Addressing review comments
* Rebasing
* feat: [CDE-92]: Using port from config for code-server installation
* feat: [CDE-92]: Initial commit
* Rebasing
2024-07-05 05:28:31 +00:00
Dhruv Dhruv 21897dc090 feat: [CDE-116]: Adding SCM pkg responsible for fetching devcontainer config from public code repos (#2141) 2024-07-02 18:40:36 +00:00
Abhinav Singh b333f42142 feat: add users check (#2132) 2024-07-01 20:45:12 +00:00
Atefeh Mohseni Ejiyeh d06dd5c2fd fix:update default branch for empty repos if doesnt exist (#2127) 2024-06-28 02:16:39 +00:00
Dhruv Dhruv 1b244fe624 Adding soft delete to gitspace_configs table (#2125) 2024-06-19 08:42:41 +00:00
Johannes Batzill 4c4924495c [Fix] Fix `.git` path rewriting for end of path scenarios (#2117) 2024-06-17 21:19:41 +00:00
Dhruv Dhruv b36b2315ad Updating events and gitspaces tables (#2115) 2024-06-17 12:06:05 +00:00
Dhruv Dhruv d903c0ffed Changing names to display names and replacing default unique constraints with named unique indexes (#2098) 2024-06-17 06:25:55 +00:00
Dhruv Dhruv 64268b96c3 feat: [CDE-69]: Making page and limit query params in openapi spec public. (#2114) 2024-06-16 03:41:10 +00:00
Johannes Batzill 6645c274d3 Ensure principal_uid_unique is updated with principal_uid (#2111) 2024-06-14 18:18:26 +00:00
Darko Draskovic fe7b1941ef Add omitempty to stats and run get change info for changes and types in parallel (#2105) 2024-06-14 15:41:53 +00:00
Johannes Batzill 329181ed1a Update principal uid for user/sa/service (#2107) 2024-06-14 01:16:09 +00:00
Atefeh Mohseni Ejiyeh b005db9920 fix: Return Unauthorized for /user endpoint APIs if session is anonymous (#2102) 2024-06-13 02:05:26 +00:00
Atefeh Mohseni Ejiyeh bcb8e7e3ce fix import space API output repo type (#2099) 2024-06-12 23:43:14 +00:00
Enver Biševac f0e12faa67 [code-2009] only if ssh is enabled show ssh url box (#2101) 2024-06-12 18:34:25 +00:00
Atefeh Mohseni Ejiyeh 7899ebd3a3 fix: duplicate openapi operation id for public access (#2087) 2024-06-10 16:48:47 +00:00
Dhruv Dhruv 26760cdbd2 Adding commands to alter cde tables (#2085) 2024-06-10 13:27:21 +00:00
Dhruv Dhruv 58bf870038 fix: [CDE-62]: Adding gitspaces FK post table creation in infra_provisioned table in postgres (#2084) 2024-06-07 13:37:46 +00:00
Johannes Batzill d35db42583 Update CODEOWNERS to match github (#2069) 2024-06-06 16:58:01 +00:00
Dhruv Dhruv 7c2431c652 fix: [CDE-62]: Fixing foreign key constraint in gitspaces table, making gits_infra_provisioned_id nullable (#2079) 2024-06-05 13:40:06 +00:00
Enver Biševac 2f8900e463 [code-1946] initial work on ssh server (#2075) 2024-06-03 12:47:31 +00:00
Marko Gaćeša ef18a7aff2 fix ssh key fingerprint (#2076) 2024-06-03 08:40:02 +00:00
Dhruv Dhruv 67be37cb08 feat: [CDE-62]: Introducing changes related to Gitspaces in Gitness (#2072) 2024-05-29 09:37:35 +00:00
Marko Gaćeša 0d72a20450 ssh public keys: db and api (#2058) 2024-05-27 14:26:21 +00:00
Karan Saraswat 8d5c83d035 fix: [CODE-1949]: fix for trigger filters not working (#2068) 2024-05-25 04:37:55 +00:00
Shubham Agrawal 226fc83849 fix: [CODE-1926]: Fix incorrect error code in openai commit files api (#2049) 2024-05-24 06:30:11 +00:00
Johannes Batzill bc568edd85 fix cleanup for failed repo create, cleanup summary git api (#2064) 2024-05-24 00:38:29 +00:00
Johannes Batzill 1f43f091de Fix Sorting of PR Activity Listing (#2061) 2024-05-23 20:12:25 +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
Atefeh Mohseni Ejiyeh 831cf18abc Exclude soft deleted spaces on membership listing (#2059) 2024-05-22 18:15:51 +00:00
Marko Gaćeša 0d1e536531 feat: [CODE-1788]: code comment block must start and end on the same side (#2053) 2024-05-22 15:42:47 +00:00
Atefeh Mohseni Ejiyeh f66bfa153f fix: clone repos with .git prefix not found error (#2057) 2024-05-22 03:00:43 +00:00
Shubham Agrawal a0ac3e86c5 fix: [CODE-1924]: Add support for keyword search recursively in space paths (#2048) 2024-05-21 05:58:50 +00:00
Johannes Batzill 38553bca7b Lock pr number for dryrun instead of across whole repo (#2038) 2024-05-20 18:45:09 +00:00
Darko Draskovic d4ca33b82d Temporary rename info/alternates so --batch-all-objects doesn't follow it (#2039) 2024-05-20 18:43:52 +00:00
Johannes Batzill 6da5c93706 Only allow admin to bypass rules if bypassing is allowed (#2047) 2024-05-17 22:32:35 +00:00
Karan Saraswat ca0148816a feat: [CODE-1908]: Worked on ADO import functionality review comments (#2044) 2024-05-16 06:30:35 +00:00
Darko Draskovic 8049651963 Temporarily comment out file size check (#2040) 2024-05-15 16:26:10 +00:00
Johannes Batzill ea49937a1e [MISC] Fix routing for gitXXX and apiXXX space names (#2035) 2024-05-14 00:02:57 +00:00
Karan Saraswat a489b28ed8 feat: [CODE-1876]: adding azure driver for importing azure repos (#2025) 2024-05-13 11:26:32 +00:00
Darko Draskovic e31f33adde Add comment mentions metadata and return id to principal info mapping in list activity response (#2024) 2024-05-10 23:22:59 +00:00
Johannes Batzill 423801d51a [Secret Scanning] Add basic support for gitleaksignore (#2030) 2024-05-09 22:00:03 +00:00
Johannes Batzill f6614fe151 Minor Fixes (#2028) 2024-05-09 00:01:52 +00:00
Abhinav Singh cfddbeb143 feat: add desc to webhooks (#2022) 2024-05-06 18:41:17 +00:00
Abhinav Singh a576087694 feat: add etag for raw api (#2018) 2024-05-03 20:03:37 +00:00
Abhinav Singh 7103d88109 feat: convert to private for export (#2020) 2024-04-30 23:28:39 +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 915cf2cbb9 Minor Change to Match Commit API (#2015) 2024-04-26 19:32:45 +00:00
Johannes Batzill 9e7f80ebe0 Code Suggestions - Backend Support (#2006) 2024-04-26 16:54:50 +00:00
Johannes Batzill 86537b2c39 Fix merge related issues (#2012) 2024-04-25 22:00:53 +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
Abhinav Singh e528ce2370 fix: codeowner file parse error as first class error (#2003) 2024-04-24 19:53:21 +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
Abhinav Singh 28ba149c74 fix: remove extra error for indexer on gitness (#2004) 2024-04-23 15:27:59 +00:00
suchsoon d9b04d51c6
remove repetitive words (#3484) 2024-04-19 16:28:04 -07:00