Commit Graph

2417 Commits (abhinav-harness-patch-1)

Author SHA1 Message Date
Darko Draskovic cd5de8fe62 Fix pullreq count when applying label/value id filter (#2525)
* Add sanitize func related to label define/update
* Fix pullreq count when applying label/value id filter
2024-08-20 10:46:20 +00:00
Ansuman Satapathy 93af2c724e feat: [CDE-192]: show user info for gitspace listing. (#2531)
* feat: [CDE-192]: added TODO to move to user int as key
* feat: [CDE-192]: added created by col for gitspace config
* feat: [CDE-192]: added created by col for gitspace config
* feat: [CDE-192]: added created by col for gitspace config
* feat: [CDE-192]: added created by col for gitspace config
* feat: [CDE-192]: wire principal info cache
* feat: [CDE-192]: show user info for gitspace listing.
* feat: [CDE-192]: show user info for gitspace listing.
2024-08-20 09:34:10 +00:00
Atefeh Mohseni Ejiyeh 8d487921a6 feat: [CODE-2259]: update allowed repo states list for reposettings APIs (#2538) 2024-08-20 01:22:55 +00:00
Deepesh Kumar 471dead872 feat: [CDE-243]: fixes cde logs in gitspace details (#2529)
* feat: [CDE-243]: fixes cde logs in gitspace details
* feat: [CDE-243]: fixes cde logs in gitspace details
2024-08-19 10:55:30 +00:00
Ansuman Satapathy 54113d4b06 fix: [CDE-192]: correctly set resources for infraprovider config. (#2527)
* fix: [CDE-192]: db show ids in error
* fix: [CDE-192]: db show ids in error
* fix: [CDE-192]: db show ids in error
* fix: [CDE-192]: correctly set resources for infraprovider config.
2024-08-19 07:48:37 +00:00
Enver Biševac 6d0db9512e feat: instrumentation, intitial work (#2475)
* requested changes
* requested changes
* feat: instrumentation, intitial work
2024-08-18 22:04:34 +00:00
Ansuman Satapathy eccb57fffe fix: [CDE-192]: correctly set resources for infraprovider config. (#2524)
* fix: [CDE-192]: correctly set resources for infraprovider config.
2024-08-16 12:02:43 +00:00
Deepesh Kumar 2ad02f1321 feat: [CDE-177]: Fixes for delete and open vscode (#2523)
* feat: [CDE-177]: Fix lint issues
* feat: [CDE-177]: Fixes for delete and open vscode
* feat: [CDE-177]: Fixes for delete and open vscode
2024-08-16 10:03:40 +00:00
Dhruv Dhruv 0f8eb568e2 feat: [CDE-241]: Adding protocol to the gitspace port returned by the IDE and corresponding changes. Fixing gitspace instance's reference instead of value in the orchestrator. (#2521)
* feat: [CDE-241]: Addressing review comment.
* feat: [CDE-241]: Addressing review comment.
* feat: [CDE-241]: Adding protocol to the gitspace port returned by the IDE and corresponding changes. Fixing gitspace instance's reference instead of value in the orchestrator.
2024-08-16 08:31:05 +00:00
Ansuman Satapathy 2f3b6a6f85 feat: [CDE-177]: Update listing page for CDE (#2506)
* feat: [CDE-207]: Fixed typecheck (#2513)

* feat: [CDE-207]: remove currentUserInfo app prop
* Merge branch 'CDE-207-FixTypeCheck' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-207-FixTypeCheck
* feat: [CDE-207]: remove currentUserInfo app prop
* feat: [CDE-207]: Fixed typecheck
* feat: [CDE-207]: Fixed typecheck
* feat: [CDE-207]: Fixed typecheck
* feat: [CDE-207]: Fixed typecheck
* fix lint errors (#2520)

* add copyright header
* add copyright header
* fix lint errors
* feat: [CDE-192]: mark stuck actions as error
* feat: [CDE-192]: mark stuck actions as error
* feat: [CDE-192]: mark stuck actions as error
* feat: [CDE-192]: fix gitspace instance store
* Merge remote-tracking branch 'origin/main' into CDE-New
* add secret resolver in gitness (#2493)

* rename identifier to space identifier
* update factory method
* remove access_key from gitspace table
* add access key and type to devcontainer exec
* add migration for gitspace access key ref
* fix error message for resolver factory
* update resolver interface
* add secret resolver in gitness
* feat: [CDE-192]: correctly update date and sync update
* Merge remote-tracking branch 'origin/main' into CDE-New

# Conflicts:
#	app/api/controller/gitspace/action.go
#	app/api/controller/gitspace/delete.go
* feat: [CDE-192]: correctly update dates for updated
* feat: [CDE-192]: handle empty inputparams
* feat: [CDE-192]: handle empty inputparams
* Merge remote-tracking branch 'origin/main' into CDE-New
* Merge remote-tracking branch 'origin/main' into CDE-New
* feat: [CDE-207]: Use SCM api hook (#2499)

* feat: [CDE-207]: Updated Strings
* feat: [CDE-207]: Use SCM api hook
* feat: fixed string issue (#2476)

* feat: [CDE-211]: fixed lint issues
* feat: [CDE-211]: fixed lint issues
* feat: fixed string issue
* feat: fixed string issue (#2474)

* feat: fixed string issue
* add ssh identifier in map functions in gitness store
* add ssh fields in types
* feat: fixed GitspaceCodeRepoType in create payload
* feat: updated common hooks
* feat: update for listing
* feat: update for listing
* feat: removed cde folder
* feat: [CDE-177]: Update listing page for CDE
2024-08-16 06:46:02 +00:00
Atefeh Mohseni Ejiyeh aa66cca792 fix: [CODE-2192]: (Swagger) Add Update default-branch API (#2519)
* add update default branch open api
2024-08-16 00:45:45 +00:00
Vistaar Juneja e1ef7e9609 feat: [CI-13861]: support gitness provided variables for docker configuration (#2517)
* fix lint
* feat: [CDE-192]: implement overrides and honor env variables for CDE docker client
* remove default value of host from config and Dockerfile
* feat: [CI-13861]: support gitness provided variables for docker configuration
2024-08-15 12:15:31 +00:00
Ansuman Satapathy 7a3df78d8b feat: [CDE-192]: correctly cache login info during first checkout (#2515)
* feat: [CDE-192]: correctly cache login info during first checkout
2024-08-15 05:33:11 +00:00
Marko Gaćeša d089d04025 add space descendants data layer fn (#2511)
* add space descendants data layer fn
2024-08-14 16:49:30 +00:00
Darko Draskovic 7e3253d366 Fix missing empty type and color values validation (#2510)
* Fix missing empty type and color values validation
2024-08-14 16:41:11 +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
Dhruv Dhruv dcf2068873 feat: [CDE-192]: Updating instance state synchronously when calling orchestrator's trigger flows. (#2505)
* feat: [CDE-192]: Updating instance state synchronously when calling orchestrator's trigger flows.
2024-08-14 11:57:19 +00:00
Dhruv Dhruv 236f4dc12a feat: [CDE-240]: Drop gitspace data in down migration. (#2503)
* feat: [CDE-240]: Drop gitspace data in down migration.
2024-08-14 07:09:38 +00:00
Ritik Kapoor 1091cc3397 fix: merge option changes on polling (#2502)
* fix: merge option changes on polling
2024-08-13 23:10:35 +00:00
Johannes Batzill 313c706be7 fix 0051_create_table_public_key.down migration (#2494) 2024-08-13 21:03:47 +00:00
Ansuman Satapathy 99d8d2d6a3 feat: [CDE-192]: make hosts and ports in gitspace infrastructure more verbose (#2496)
* feat: [CDE-192]: make hosts and ports in gitspace infrastructure more verbose
2024-08-13 11:42:01 +00:00
Dhruv Dhruv be471c2151 fix: [CDE-232]: Dropping FK constraint and correcting order of dropping tables. (#2490)
* fix: [CDE-232]: Dropping FK constraint and correcting order of dropping tables.
2024-08-13 06:52:16 +00:00
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
Johannes Batzill 5bea61a139 feat: [CODE-2220]: Change default ssh port to 3022 (#2484) 2024-08-13 00:27:49 +00:00
Johannes Batzill 6db16133b5 fix: [CODE-2217]: Reverting go-generate to Pre-V1-Yaml (#2479) 2024-08-12 18:37:11 +00:00
Deepesh Kumar ec2a7c3361 fix: lookup-repo error handling (#2466)
* fix: lookup-repo error handling
2024-08-11 09:13:00 +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
Tan Nhu f626dc640e Render off-screen diffs in a single pre tag to boost performance (#2271)
* Tan's last PR :)
* Sync with main
* Prevent browser crash on big PR (>200 files changed)
* Fixed link to comment not working
* Add NPE prevention
* Fixed Show Diff works only once
* Fix Harness nav is not auto-collapsed when visiting PR Changes
* Add code to restore new and edited comments
* Render off-screen diffs in a single pre tag to boost performance
2024-08-09 17:41:59 +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
Abhinav Singh 9548ba0cee Revert "fix: [CODE-2203]: fix Dockerfile (#2424)" (#2440)
* Revert "fix: [CODE-2203]: fix Dockerfile (#2424)"

This reverts commit 5024a23f05.
2024-08-09 11:39:58 +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
Shivakumar Ningappa 5024a23f05 fix: [CODE-2203]: fix Dockerfile (#2424)
* fix: [CODE-2203]: fix Dockerfile
2024-08-08 19:23:59 +00:00
Ansuman Satapathy 3d4cbb95ec feat: [CDE-192]: added a new factory method for infraproviders. (#2431)
* feat: [CDE-192]: added a new factory method for infraproviders.
* feat: [CDE-192]: added a new factory method for infraproviders.
2024-08-08 12:39:09 +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
Johannes Batzill ef526db38a [Dockerfile] Enable CDE and SSH by default (#2426) 2024-08-08 01:03:49 +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
Ritik Kapoor 91291b8b27 fix: URL for case insensitive repo name and block infinite render (#2410)
* remove unnecessary block
* update: condition for replacing the incorrect URL
* Apply suggestion from code review
* fix: strict handle the case insensitve repo names
* update: using replace instead of push for invalid URL
* fix: URL for case insensitive repo name and block infinite render
2024-08-07 20:13:14 +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