Commit Graph

56 Commits

Author SHA1 Message Date
Abhinav Singh
3ec8d18fbf Merge remote-tracking branch 'origin' into abhinav/CODE-830 2023-09-12 16:20:15 -07:00
Abhinav Singh
73d8e1e931 feat: [CODE-847]: repo export 2023-09-12 16:18:23 -07:00
Vistaar Juneja
c7ef132cbc add support for triggered builds (#428) 2023-09-12 09:08:38 +00:00
Abhinav Singh
54154ec7d6 feat: [CODE-830]: export init commit 2023-09-11 16:10:23 -07:00
Marko Gaćeša
b0460b3658 simplify import job starting 2023-09-11 12:01:40 +02:00
Marko Gaćeša
798c794582 fix space import 2023-09-09 15:10:33 +02:00
Marko Gaćeša
cde80d53a8 add space import 2023-09-09 12:55:49 +02:00
Vistaar Juneja
5000e78b5e rename Events interface to EventsStreamer, add file header 2023-09-08 13:15:18 +01:00
Vistaar Juneja
b81d3cbcce address comments 2023-09-08 12:52:55 +01:00
Vistaar Juneja
414993a388 add pubsub for events 2023-09-08 12:52:25 +01:00
Vistaar Juneja
d15aa03dfd move pipelines, executions, triggers & logs under repos (#376) 2023-08-31 08:03:33 +00:00
Marko Gaćeša
dea23b88a4 add filtering and pagination to the user's list spaces API 2023-08-28 14:02:58 +02:00
Marko Gaćeša
1dee346038 optimize user count in the membership list API 2023-08-25 17:56:16 +02:00
Vistaar Juneja
b94d30dcb6 address comments 2023-08-22 18:21:31 +01:00
Vistaar Juneja
ebfac87860 fix some formatting 2023-08-22 15:28:30 +01:00
Vistaar Juneja
ef69decbde Run make format 2023-08-22 15:08:46 +01:00
Vistaar Juneja
2d91d3acf1 remove tx from list 2023-08-22 14:48:24 +01:00
Vistaar Juneja
887670bd7d add openapi defs 2023-08-22 14:05:13 +01:00
Vistaar Juneja
d1d50377fc address comments 2023-08-11 11:36:39 +01:00
Vistaar Juneja
c1ebb1837a update return type of list to use pointer 2023-08-10 16:52:39 +01:00
Vistaar Juneja
01fffd56a3 address comments 2023-08-10 14:33:02 +01:00
Vistaar Juneja
2bf73fbb5c add UpdateOptLock 2023-08-09 23:56:47 +01:00
Vistaar Juneja
f35d8fe03d add list secrets 2023-08-09 17:19:26 +01:00
Vistaar Juneja
26d6651168 address comments, complete secret CRUD 2023-08-09 15:02:48 +01:00
Vistaar Juneja
80b7082a43 fix pagination 2023-08-08 12:09:48 +01:00
Vistaar Juneja
1e7e4c98dd fix some TODOs 2023-08-08 00:25:58 +01:00
Vistaar Juneja
c8ae92150f add pipelines auth 2023-08-07 18:29:29 +01:00
Vistaar Juneja
4390376acd add list, fix delete 2023-08-04 16:44:51 +01:00
Marko Gaćeša
f5084697b1 Minor fixes and refactoring 2023-07-28 12:57:16 +02:00
Johannes Batzill
338271fb14 feat: [CODE-674]: user's space membership; membership API pagination (#241) 2023-07-26 20:53:42 +00:00
Johannes Batzill
45e48a2b05 [GITHA] Expose GRPC Server/Client Configurations for HA Kubernetes Deployment (#231) 2023-07-25 18:15:06 +00:00
Hitesh Aringa
914050c8a1 [CODE-631]: use parent ref in space membership (#226) 2023-07-24 21:21:09 +00:00
Hitesh Aringa
bc5945f8ba [CODE-631]: parent ref changes (#214) 2023-07-24 21:10:45 +00:00
Marko Gaćeša
9c8e578d90 typo fixes 2023-07-24 15:10:56 +02:00
Johannes Batzill
baa4eb5ac9 feat: [CODE-626,CODE-627]: space membership API&DB (#194) 2023-07-20 21:20:56 +00:00
Johannes Batzill
36e8bdb368 [GITHA] Introduce Generic store Package (#143) 2023-06-20 00:26:40 +00:00
Johannes Batzill
06067d4f6c Fix Linting errors (#142) 2023-06-15 21:27:06 +00:00
Johannes Batzill
e1a24699c3 CODE-385: Search and Add reviewers to Database API (#126) 2023-06-15 20:26:36 +00:00
Atefeh Mohseni-Ejiyeh
7cb37db6c6 disable delete repo API from backend (#119) 2023-06-12 17:05:31 +00:00
Atefeh Mohseni-Ejiyeh
0df1335855 [HARNESS] Delete Space on Harness Account/Org/Project deletion (#83) 2023-06-08 00:09:34 +00:00
Enver Bisevac
8ab5185263 fixed linter issues 2023-05-17 21:56:23 +02:00
atefeh
a309f4ec9b CODE 165-API for delete a space subspaces and their repositories 2023-05-09 09:21:25 -07:00
Johannes Batzill
335998505e [MISC] Introduce PathStore and Move PathLogic to Controller Layer (#226)
This change is a follow up on the effort to remove transactions and sync stores from the database layer, and move them in the application layer. It is addressing the repo + space store.
The following changes are included:
- Introduce PathStore storing resource paths (repo + space)
- Add foreign key from path.repo_id/space_id to repo.id/space.id
- Add foreign key from repo/space.parent_id to space.id
- Remove repo_sync and space_sync
- Move path creation logic to repo/space controller (for both creating primary paths for new repos/spaces, as well as creating alias spaces)
- Reimplement repo/space moving on controller layer
2023-01-18 11:34:12 -08:00
Johannes Batzill
2006f769c9 [Webhook] Add url.Provider, Add principal to branch webhooks (#163) 2023-01-06 01:57:26 -08:00
Johannes Batzill
06721dcf20 [Techdebt] merge user/service/serviceaccount stores into single principal store (#160)
This change merges the `UserStore`, `ServiceStore`, and `ServiceAccountStore` into a single `PrincipalStore`.
2023-01-05 15:58:18 -08:00
Marko Gaćeša
a79e187a88 DB & API refactor: Use snake case (#144)
Update DB and API to follow Harness Standard
2022-12-29 13:53:08 -08:00
Enver Bisevac
630c9b553f ordering imports linter and writer (#85) 2022-11-22 23:42:39 +01:00
Enver Bisevac
93fc430776 [bug] git clone/pull/push auth using Basic Authorization fixed (#66)
* git clone/pull/push auth using Basic Authorization fixed

* use api key as git login

* middleware renamed to RequiredInGitPath

* remove requiredingitpath middleware

* requested changes

* requested changes

* minor code cleanup
2022-11-11 07:59:32 +01:00
Johannes Batzill
ff2f949e78 add GITURL to repo apis list and create (#64)
- rename repo.url to repo.GitURL to avoid ambiguity
- add support to create / list api
- add default value (http://localhost:3000)
- remove handler backfilling host / port to simplify flow (can be added if needed)
2022-11-08 19:35:49 -08:00
Johannes Batzill
3ba0f75c8d Introduce UIDs for Space / Repo / Tokens, Add Custom Harness Validation, ... (#57)
This change adds the following:
- Space UID + Custom harness validation (accountId for top level space, harness identifier for child spaces)
- Repo UID + Custom harness validation (harness identifier)
- Store Unique casing of space / repo path and add Path.ValueUnique (with Unique index) to allow for application layer controlling the case sensitivity (case insensitive standalone vs partially case sensitive harness)
- Token UID (unique index over ownertype + ownerID + tokenUID)
- Add DisplayName for principals (replaces Name to avoid confustion)
- Store Unique casing of principal UID and add Principal.ValueUnique (with unique index) to allow for application layer, per principal type control of case sensitivity (required in embedded mode)
- Generate serviceAccount UID (+Email) Randomly (sa-{space|repo}-{ID}-{random}) - Allows to have a unique UID across all principals while reducing likelyhood of overlaps with users + avoid overlap across spaces / repos.
- Sync casing of space names (accountId orgId projectId) when creating spaces on the fly (to ensure case sensitivity of - harness code) or use the existing space to update casing.
- Update serviceaccount client to match updated NG Manager API
- in embedded mode create spaces for harness resources owning the service account
2022-11-06 23:14:47 -08:00