Commit Graph

300 Commits

Author SHA1 Message Date
Johannes Batzill
2006f769c9 [Webhook] Add url.Provider, Add principal to branch webhooks (#163) 2023-01-06 01:57:26 -08:00
Tan Nhu
4938718aca Add Changes integration into PR Compare view (#164) 2023-01-06 01:56:37 -08:00
Tan Nhu
4c6c2b3b56 Fix service generation bug + fix reply to comment thread rendering (#162) 2023-01-05 23:08:39 -08:00
Tan Nhu
b2c4de4751 Full API integration for PR Conversation tab (#161) 2023-01-05 21:26:50 -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
Johannes Batzill
6c567b38d0 [MISC] Move GitRPC to Read/WriteRequest, Update Create/Delete Branch to use Push, Setup githook Symlink, Accept Incoming X-Request-Id (#157) 2023-01-05 11:03:35 -08:00
Johannes Batzill
d61e876de0 [FIX] Add repo_pullreq_seq to pullreq read APIs (#158) 2023-01-05 01:06:55 -08:00
Johannes Batzill
7ada1af3aa [API] Add after Support to Commit Listing (#155) 2023-01-04 16:59:43 -08:00
Johannes Batzill
1f1118f624 [Webhook] Add Event Processing and Retrigger (#148)
This change includes:
- webhook event processor (includes actual webhook execution)
- webhook retrigger API allowing to retrigger previous webhook executions
2023-01-04 14:43:36 -08:00
Johannes Batzill
f5ef764318 [DB] fix index namings, improve composite index performance (#154)
This changes includes:
- change index naming to be consistent
- reorder columns in composite indices for paths/principals to improve performance
2023-01-04 12:47:41 -08:00
Marko Gaćeša
ff934c840f Geting users by email, fix for Postgres (#150) 2023-01-04 19:16:09 +01:00
Marko Gaćeša
9f7d6cc857 Added payload to create/update PR comment API (#152) 2023-01-04 12:26:25 +01:00
Marko Gaćeša
98ac3d130d techdebt: [SCM-43]: Using opt lock to generate PR number (#151) 2023-01-04 12:24:17 +01:00
Tan Nhu
8ac12ee341 API integration for Conversation comments (#153) 2023-01-02 16:14:51 -08:00
Enver Bisevac
72485456ab swagger ref added for rawdiff 2023-01-02 10:56:32 +02:00
Tan Nhu
58a2d90973 Redirect to Compare when editing a file with new branch created (#149) 2022-12-29 22:41:43 -08:00
Johannes Batzill
c30beb34ac [Harness] Add user self API (#147)
This change is adding the following:
- Global HarnessContext injection
- Block API KEY authentication for global context (They are tied to accounts)
- /user API endpoint for embedded mode
2022-12-29 16:01:14 -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
Marko Gaćeša
ae6e864f57 Removed sync store for token/service/user/service-acc (#139) 2022-12-29 11:52:50 +01:00
Tan Nhu
e4ae2b269b Implement components to support PR commenting (#146) 2022-12-28 15:58:02 -08:00
Johannes Batzill
1337f729e7 [Webhook] Add Swagger (#145)
This change adds webhook APIs to swagger and regenerates the web service clients based on the latest swagger.
2022-12-28 14:42:13 -08:00
Johannes Batzill
44ec7ceb07 [Webhook] Add API and DB Basics (#142)
This change introduces:
- webhook type / store / controller / handler
- webhookExecution type / store / controller / handler
- foreign key fix for sqlite3
2022-12-28 13:07:48 -08:00
Marko Gaćeša
f14731455d Add parent_id column to the pullreq_activities DB table (#143) 2022-12-28 18:51:34 +01:00
Marko Gaćeša
c81ddeb65f Fixed pullreqs DB table name in migration (#140) 2022-12-27 17:51:03 +01:00
Marko Gaćeša
da53331ca1 PR comment: edit and delete APIs (#138) 2022-12-27 14:55:53 +01:00
Marko Gaćeša
b5bdeb8538 create comment API (#137) 2022-12-27 11:46:49 +01:00
Marko Gaćeša
7fc77396a9 Pull request timeline feature: DB and the list API (#136) 2022-12-26 12:17:38 +01:00
Tan Nhu
23792ab2f5 Add Diff view Line Break configuration (#135)
* Add Diff view Line Break configuration

* Minor string change
2022-12-23 00:57:56 -08:00
Johannes Batzill
63c3740e58 [UI] Consume Latest OpenAPI Specs (#134)
* regenerate CODE service code to match latest API specs

* update readme
2022-12-22 21:58:38 -08:00
Tan Nhu
9da9aa42b5 Remove bad tick from icons package (#133) 2022-12-22 15:48:00 -08:00
Tan Nhu
97e70cd581 Implement commenting thread (#132)
* Implement commenting thread

* Add extra comment example
2022-12-22 15:06:56 -08:00
Tan Nhu
da3bfc9bd0 Implement PR commenting prototype (#131)
* Remove unused packages

* Remove some unused packages

* Height adjustment calculation for DiffViewer with CommentBox inside

* Add logic to render existing comments

* Improve rendering performance

* Remove optimization that makes things slow

* Use 'auto' to boost re-layout performance

* Fix wrong height calculation when 'auto' is being sent

* Fix CommentBox height adjustment when comments got changed
2022-12-22 13:34:54 -08:00
Marko Gaćeša
8f5e579001 rename DB table pullreq to pullreqs; added version (#130) 2022-12-22 20:21:15 +01:00
Enver Bisevac
22b0595476 initial work on raw diff (#129) 2022-12-22 14:30:31 +01:00
Tan Nhu
43c7e94e06 Add markdown editor into commenting (#128)
* Small refactoring

* Refactoring: Make it a bit easier for DOM manipulation

* Add markdown editor into commenting
2022-12-20 11:28:56 -08:00
Johannes Batzill
7abcacdd2f feat: Add Events Framework (#120)
This Commit adds:
- stream package (provides different implementation of stream producers and consumers)
  + Redis -> will be used for any non-local deployments
  + InMemory -> a VERY BASIC implementation that is used for local execution
- events package
  + GenericReporter -> responsible for reporting events, can be used to send any type of event and payload
  + GenericReader -> responsible for reading events from a stream, can be used to register handlers for any type of event and payload
  + ReaderFactory -> responsible for launching readers for any type of consumer group&name.
- webhook package
  + The wire frame of the webhook package.
- gitrpc/events package
  + defines event Reader/Reporter for events of category git
2022-12-16 13:37:08 -08:00
Tan Nhu
0d49ef1d69 Prototyping for diff annotations (#127) 2022-12-16 09:57:52 -08:00
Johannes Batzill
3b120dd2b3 Add Zerolog Support to GITRPC (#126)
This change adds the following:
- Inject APP server zerolog RequestID as metadata into all gitrpc calls from client side.
- Inject Zerolog logger into context with common fields set (like service, method, requestID, ...). This allows for better request tracking within gitrpc, but also request tracking across services we extract the requestID send by the grpc client
- Modify http logs to use http. prefix for common http related logging annotations.
2022-12-16 08:39:10 -08:00
Marko Gaćeša
a734db6f0c global mutex for the dbtx package (#118) 2022-12-13 17:52:16 +01:00
Marko Gaćeša
204548169d pullreq: update API (#122) 2022-12-13 16:13:27 +01:00
Tan Nhu
619fd2c9de Add PR listing page + Commits tab for PR detail page (#123)
* Add PR listing page + Commits tab for PR detail page

* Add commits place-holder in Compare view

* Add commits place-holder in Compare view

* Correct PR number after creation

* Minor CSS improvement

* Add diff sample

* Diff side by side (3.4.2 is better than latest)

* Big PR diff example

* Implement diff view

* Scrolling optimization

* Add placeholder to allow click at line number
2022-12-12 16:39:14 -08:00
Marko Gaćeša
fe9118e074 PullReq list API: Added pagination headers (#121) 2022-12-09 17:02:45 +01:00
Marko Gaćeša
6bde210adf added branch params to PR list API (#119) 2022-12-09 15:45:02 +01:00
Marko Gaćeša
a0646e9935 using a lib for sql null types (#117) 2022-12-08 16:30:49 +01:00
Marko Gaćeša
15163f3daa pullreq: dedicated struct for pulling data from DB (#116) 2022-12-08 12:52:31 +01:00
Marko Gaćeša
efcb047f46 pullreq refactor: fix linter issues (#115) 2022-12-07 14:22:44 +01:00
Marko Gaćeša
9e86875217 Returning author and merger info for PRs (#114) 2022-12-07 14:03:17 +01:00
Marko Gaćeša
8bdb31a4e2 checking branch existence in PR create (#105)
* checking branch existence in PR create
* added new methods to gitrpc: existence check for branch and tag
2022-12-06 12:26:12 +01:00
Tan Nhu
d898f4edb7 Add placeholders for PR page (#113)
* Add placeholders for PR page

* Add placeholders for PR page
2022-12-05 10:44:47 -08:00
Tan Nhu
225199b008 feat: Add Create Git Pull Request flow (#111) 2022-12-02 21:32:42 -08:00