Commit Graph

217 Commits (b7e720c220f1cf262dbb0f4dc843ba5c0e2bc644)

Author SHA1 Message Date
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 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
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
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
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
Atefeh Mohseni Ejiyeh d06dd5c2fd fix:update default branch for empty repos if doesnt exist (#2127) 2024-06-28 02:16:39 +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 64268b96c3 feat: [CDE-69]: Making page and limit query params in openapi spec public. (#2114) 2024-06-16 03:41:10 +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
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
Johannes Batzill d35db42583 Update CODEOWNERS to match github (#2069) 2024-06-06 16:58:01 +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
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
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
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
Darko Draskovic 8049651963 Temporarily comment out file size check (#2040) 2024-05-15 16:26:10 +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 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