Commit Graph

47 Commits

Author SHA1 Message Date
Johannes Batzill
0a9dde7459 [Refactor] Move from paths to space_paths Table (#500) 2023-09-15 15:19:53 +00:00
Abhinav Singh
4ff032c968 feat: [CODE-852]: code export e2e (#483) 2023-09-15 08:08:13 +00:00
Abhinav Singh
b41a40082b Merge remote-tracking branch 'origin' into abhinav/CODE-830 2023-09-13 15:28:46 -07:00
Abhinav Singh
928bd2f091 feat: [CODE-847]: repo export 2023-09-13 00:57:06 -07:00
Johannes Batzill
ef4855e901 [Server Sent Events] Improve both Frontend and Backend (#441) 2023-09-12 23:45:54 +00:00
Abhinav Singh
35fbf7c6f3 feat: [CODE-847]: repo export 2023-09-12 16:38:49 -07:00
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
Marko Gaćeša
cde80d53a8 add space import 2023-09-09 12:55:49 +02: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
Vistaar Juneja
2b633f9fd8 add triggers openapi 2023-08-22 14:05:13 +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
2bf73fbb5c add UpdateOptLock 2023-08-09 23:56:47 +01:00
Vistaar Juneja
5574fcac47 address comments 2023-08-09 22:25:13 +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
1e7e4c98dd fix some TODOs 2023-08-08 00:25:58 +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
baa4eb5ac9 feat: [CODE-626,CODE-627]: space membership API&DB (#194) 2023-07-20 21:20:56 +00:00
Atefeh Mohseni-Ejiyeh
0df1335855 [HARNESS] Delete Space on Harness Account/Org/Project deletion (#83) 2023-06-08 00:09:34 +00:00
Akhilesh Pandey
24a9888cfc feat: Update HTTP status code to 201 when returning from successful create operations 2023-06-01 15:09:17 +05:30
Johannes Batzill
c0258b34ef Add search capability to repo and space listing (for child spaces) (#44)
This change is adding search capability to the following apis:
- child repositories
- child spaces
*NOTE* The search space is limited to direct child repos/spaces.
2022-10-24 18:57:55 -07:00
Johannes Batzill
5337c46a4f Add Query and Sorting Capability to ListBranches API (#42)
This change adds the following to the list branches api:
- 'query' parameter for querying branches using arbitrary substrings
- 'sort' parameter for sorting the branches (name and date supported)
- 'direction' parameter for specifing the direction of the sorted output
2022-10-21 20:45:26 -07:00
Johannes Batzill
743aee6029 [API] Add List Branches, Improve latestCommit Performance for listing directory (#38)
This commit has the following changes:
- API for listing branches
- Improve performance of content API for dir type responses with includeCommit=true
- swagger for git operations
- fix file names from camelCase to kebab_case
2022-10-17 23:05:50 -07:00
Enver Bisevac
2b69b3d24a [MAINT] added repos endpoints to swagger (#33)
* added repos endpoints

* todo comments removed in create repo method
2022-10-18 00:10:36 +02:00
Enver Bisevac
00647d7d1b [MAINT] golangci-lint config changed (#31)
* goheader linter added

* file header consistency
2022-10-13 14:39:15 +02:00
Johannes Batzill
5786ad2409 [Embedded] Harness Router, Inline Space Creation, Bootstrap, Harness/Admin User Setup (#28)
Adds the basic for harness embedded mode:
- Harness dedicated router with custom APIHandler
- Inline Space Creation
- Client for Account/Org/Project
- Bootstrap (Allows for automated creation of admin user and gitness service (used for all platform required ops))
- Inline harness service principal creation
- Ignore flag for ACL.
2022-10-10 21:32:14 -07:00
Johannes Batzill
fad6e18898 Introduce Controller for Repo, Space, User, and ServiceAccount (#25)
Preparing the support for harness specific API router + http handler, which allows us to have complete control over the rest api naming and functionality, without having to do complex path rewrites or request / reponse rewrites inline.
2022-10-03 18:56:49 -07:00
Johannes Batzill
4d3db64397 add specific handlers for api/git/web to allow replacement for harness (#23)
Abstracting the api/git/web routers will allow us to replace API routing (and potentially web?), while keeping the rest the same.
2022-09-30 17:05:39 -07:00
Johannes Batzill
8c2f900c80 Principals, ServiceAccounts, Tokens and auth.Sessions (#15)
This change introduces the concept of a principal (abstraction of call identity), and adds a new service account type principal. Also adds support for different tokens (session, PAT, SAT, OAuth2) and adds auth.Session which is being used to capture information about the caller and call method.
2022-09-25 23:44:51 -07:00
Enver Bisevac
66f2dadb7a [MAINT] fixing linter errors (#19)
* fix linter errors

* fix exhaust linter error

* fix exhaust linter error

* fix linter errors

* golangci-lint timeout increased

* golangci-lint verbose flag
2022-09-22 16:08:41 +02:00
Enver Bisevac
f03528e862 [MAINT] initial config for ci linter (#17)
* initial config for ci linter

* more linter work

* linter errors fix

* linter errors fix

* linter conf minor changes
2022-09-19 18:13:18 +02:00
Johannes Batzill
b7b9f53b0d Improve error handling to match go standards - don't wrap and rethrow, but log and return. Also adds some more validations for path creation and resource moving. Add accesslogging for git and api router (#14)
This commit contains the following:
- Improve and simplify error handling (remove unnecessary wrappers, make it feel like go)
- Add extra validation for path creation and resource moving (path has to be within same top space, no top space alias allowed)
- Add access logging for rest api and git api
2022-09-09 22:08:46 -07:00
Johannes Batzill
4812beedc6 Enforce max path length on store layer to avoid racing condition, (#12)
Add enforcement of the path length to the store layer before writing the path, move errs to internal, and adds a comms package under internal/api.
2022-09-09 00:45:41 -07:00
Johannes Batzill
1115a5083b Add Paths support and error improvements (#11)
This change is adding the concept of Paths.
A repository and space always have a Primary Path which always is represents the ancestry to the root space.
All access history / resource visibility / child listings / UI traversal / etc. is done via that path.

Additionally, repos and spaces can have Alias Paths, which as the name states are aliases. via the primary path.
They sole impact is that a space or repo can be reached via different paths from the UI / rest apis / git apis.
This fulfills two major purposes:
- Customers can rename or move projects and spaces without breaking any existing references from CI pipeliens / code bases / local repos / ...
- Customer can create shorter aliases for important repos when in harness embeded mode! (acc/org/proj/repo can be shortened to acc/repo, or acc/repo'

Apart from the path changes, this PR adds:

Improved User facing errors
Improved internal error handling and wrapping
update / rename operation for repo and space
path list / delete / create operation for repo and space
2022-09-08 21:39:15 -07:00
Johannes Batzill
1db4fc9c8d Change create API for space/repo to follow REST best practices (#10)
Move repo and space create apis to /api/v1/repos/ and /api/v1/spaces/ and take name and parentId in body.
2022-09-06 20:36:34 -07:00
Johannes Batzill
3b6f6b8916 Add proper scoping to authorization code 2022-09-05 22:17:16 -07:00
Johannes Batzill
ff806fb492 block 'api' as root space name, minor improvements 2022-09-05 18:45:16 -07:00
Johannes Batzill
d7f0ae4b2c Add base structure for rest api, git api, web api. Add base authn and authz, as well as spaces and repository apis 2022-09-05 13:47:00 -07:00
Johannes Batzill
32e6c4929f Add authn, authz, spaces, guard, terminated FQNs 2022-09-05 13:47:00 -07:00