Commit Graph

154 Commits (unified-ui)

Author SHA1 Message Date
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 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
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
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
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
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 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
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 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
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
Enver Biševac 2f8900e463 [code-1946] initial work on ssh server (#2075) 2024-06-03 12:47:31 +00:00
Marko Gaćeša 0d72a20450 ssh public keys: db and api (#2058) 2024-05-27 14:26:21 +00:00
Johannes Batzill bc568edd85 fix cleanup for failed repo create, cleanup summary git api (#2064) 2024-05-24 00:38:29 +00:00
Atefeh Mohseni Ejiyeh c365ef246a Support Public Access (#2021) 2024-05-23 04:56:26 +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
Enver Bisevac d31dd11fcf [code-1692] update repo settings audit log (#1231) 2024-04-19 09:43:51 +00:00
Enver Bisevac 2ce0f96b59 [code-1524] audit trail for import repositories (#1209) 2024-04-12 18:35:29 +00:00
Marko Gacesa 781b3547c0 refactor git hook calling and shared repo (#1200) 2024-04-12 09:48:35 +00:00
Enver Bisevac 227aac90b5 [code-1524] audit trails package (#1176) 2024-04-08 21:13:57 +00:00
Atefeh Mohseni-Ejiyeh b64f4c41fa Update default branch on empty repo for first commit (#1122) 2024-04-04 01:16:43 +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
Abhinav Singh 96f35b6e01 feat: add repochecks (#1132) 2024-03-26 22:22:30 +00:00
Enver Bisevac cecfecdb06 [code-1016] Replace `gitea` Usages (not wrapper) (#1063) 2024-03-26 20:31:30 +00:00
Darko Draskovic 8dc82433c5 Add generic pre/post receive extender (#1138) 2024-03-26 18:17:28 +00:00
Atefeh Mohseni-Ejiyeh 5d0d28e4a3 Support Space Soft Delete, Restore, and Purge (#1076) 2024-03-21 23:34:19 +00:00
Abhinav Singh 16ef31bcb6 feat: support diff repo id check in harness code (#1123) 2024-03-21 00:38:18 +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 c270b8f7b9 [CLI] move swagger+server under cli/operations (#1011) 2024-02-01 19:41:32 +00:00
Abhinav Singh 87cae05747 feat: different openapi for harness code (#997) 2024-01-30 21:51:44 +00:00
Johannes Batzill adf2046a94 [MISC] Move `UID` to `Identifier` to match Harness Standards (#992) 2024-01-29 23:29:53 +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
Vistaar Juneja a27a1e4abb add support for starlark/jsonnet for drone v1 (#940) 2024-01-05 14:10:22 +00:00
Darko Draskovic dd49c18b2e Add a repo size limiter method to Unlimited limiter (#943) 2024-01-03 14:13:51 +00:00
Darko Draskovic c58e82672b Add func to git service to count repo objects and read repo size (#886) 2023-12-29 12:33:53 +00:00
Darko Draskovic 1a8e99f0b6 Add noop repo resource limiter to controller (#926) 2023-12-22 17:31:15 +00:00
Johannes Batzill 1d8d50a188 [Githook] Introduce InMemory Githook (#916) 2023-12-19 15:50:15 +00:00
Abhinav Singh 05af8b777b feat: refactor status check to create abstraction (#902) 2023-12-15 07:13:13 +00:00
Atefeh Mohseni-Ejiyeh 3dbaef0eb8 separate job package config from gitness types (#897) 2023-12-13 06:15:09 +00:00
Marko Gacesa a7f11126fa remove gogit (#887) 2023-12-11 10:15:15 +00:00
Johannes Batzill ff9843db26 [MISC] Fix Missuage of `processGiteaErrorf` (#891) 2023-12-08 23:55:04 +00:00
Johannes Batzill b8942a4e41 [GIT] Enable Trace Logging (#888) 2023-12-08 22:50:16 +00:00
Atefeh Mohseni-Ejiyeh 5aec7bf37f move job package to the top level (#883) 2023-12-08 17:06:44 +00:00