1
0
mirror of synced 2025-12-21 11:01:41 -05:00
Commit Graph

86 Commits

Author SHA1 Message Date
Michael Siega
32a984123e convert the workspace update api to patch style (#16739)
* convert the workspace api to patch style

* check for empty email in workspace update
2022-09-26 11:29:51 +02:00
Davin Chia
03ae8bc4a4 Remove the webbackend list all route. (#17006)
Web backend routes are used by the Frontend.

This is not used today, and we don't imagine using it in the near future.
2022-09-21 16:21:09 -05:00
Parker Mossman
1a0ea82c34 Change ConnectionUpdate to PATCH behavior (#16157)
* remove operationIds from WebBackendConnectionUpdate, just use operations

* refactor connection updates to patch-style update, where null fields remain unchanged

* better comment and arg name

* format

* make sure we are still 'dual-writing' to the old schedule column, even when the patch doesn't specify anything for it

* update acceptance test to update with new schedule syntax

* add catalog sorting to preserve stream order during patch, and more tests

* format

* add description, throw runtime exception for impossible branches, move streamReset to private helper

* PR suggestions

* add nested test classes and write a test for the catalog sorting method

* format

* add comment clarifying that the catalog sort is for UX, and isn't critical

* format

* format

* update acceptance tests to send proper catalog patches instead of whole new catalog

* format

* format

* simplify catalog patching - now, if a catalog is present on the request, replace the entire catalog with it.
Otherwise, if catalog on the request is null, leave the catalog unchanged

* format

* format

* Revert "update acceptance tests to send proper catalog patches instead of whole new catalog"

This reverts commit 71922648b4e070f46ff6c468813b7ab8dd9d6651.

* adjust description
2022-09-19 18:36:34 -05:00
Parker Mossman
8852d52c9c Rename jobs/get-light to jobs/get_light and log response (#16685)
* test

* update jobInfoLight route and add log
2022-09-13 20:46:26 -07:00
Parker Mossman
1d29672122 add jobInfoLight API endpoint that excludes attempt information (#16682)
* add jobInfoLight API endpoint that excludes attempt information, which can be enormous as it includes all log lines

* update replication activity to call new light endpoint
2022-09-13 17:04:47 -07:00
Lake Mossman
a15288ad0f Improve job list API with more fetching capabilities (#16415)
* start implementation of new persistence method

* add includingJobId and totalJobCount to job list request

* format

* update local openapi as well

* refactor queries into JOOQ and return empty list if target job cannot be found

* fix descriptions and undo changes from other branch

* switch including job to starting job

* fix job history handler tests

* rewrite jobs subqueries in jooq

* fix multiple config type querying

* remove unnecessary casts

* switch back to 'including' and return multiple of page size necessary to include job

* undo webapp changes

* fix test description

* format
2022-09-12 16:32:04 -07:00
Jimmy Ma
9ad847bd8e Store protocol version from spec (#16416)
* Update protocol version from actor defs API operations

* Implement default airbyte protocol version support

* Add version parsing

* Add acceptance tests

* Fix Acceptance Tests

* format

* Make test package private
2022-09-08 18:21:28 -07:00
Charles
ce201bc412 deprecate import / export endpoints (#16175)
* deprecate import / export endpoints

* remove fe deps on import / export

* additional fe clean up
2022-09-06 09:34:18 -07:00
Parker Mossman
6a06c5b0ff Upgrade OpenAPI Generator to 6.1.0-SNAPSHOT (#16026) 2022-08-26 18:36:01 -07:00
Parker Mossman
614ebb615d Multi-Cloud MVP: Combined branch for testing and merge (#15997)
* add new Configs for multi-cloud

* add api endpoints for setting workflow attempt id and createOrUpdate state

* update activities to call APIs instead of persistence

* workerApp refactor to separately initialize control or data plane dependencies

* modify syncWorkflow to call new activity that decides which task queue for data plane tasks

* misc to get build working

* move StateConverter to worker, so that server and worker can both access without needing to introduce any new dependencies

* update configs - remove extranneous helpers, clarify naming and comments, removed COMBINED value

* forgot to actually remove COMBINED enum value, this removes it

* add WorkerApp todo for breaking API Client into a scoped client

* rename decideTaskQueueActivity var to routeToTaskQueueActivity

* pr comments

* naming fix

* refactor secretHydrator instantiation

* WorkerApp PR feedback: move API client logic to separate class, use updated configs, etc

* add a RouterService class that is injected into RouteToTaskQueueActivityImpl

* AttemptApi cleanup and added unit test coverage

* fix confusion between AttemptId and AttemptNumber in new AttemptApi

* remove unused getDataPlaneSecretsHydrator

* remove unused import

Co-authored-by: Xiaohan Song <xiaohan@airbyte.io>
2022-08-26 14:10:19 -07:00
Lake Mossman
377a1499cf Move 'updateNew' logic into 'update', and remove 'updateNew' (#15863)
* save

* clean up more usages and remove withRefreshedCatalog

* make webapp use correct endpoint

* add back intercept

* fix acceptance test

* fix log

* remove 'new' from test name
2022-08-23 11:36:48 -07:00
Michael Siega
294ee8f226 Expose cron scheduling in the Connections APIs (#15253)
* Expose cron scheduling in the Connections APIs

* Update airbyte-api/src/main/openapi/config.yaml

Co-authored-by: terencecho <terence@airbyte.io>

* Update airbyte-server/src/test/java/io/airbyte/server/helpers/ConnectionHelpers.java

Co-authored-by: terencecho <terence@airbyte.io>

* update octavia-cli tests for new schedule schema, and fix update API impl

* check for null schedule data before updating

* handle new schedule related fields in generate / apply / import

* update octavia-cli changelog

* ensure that legacy manual schedule flag is consistent with schedule_type

* update octavia cli test coverage for new schedule schema

* fix failing octavia cli integration tests

* fix file diff check

* Update octavia-cli/unit_tests/test_apply/test_resources.py

Co-authored-by: Augustin <augustin.lafanechere@gmail.com>

Co-authored-by: terencecho <terence@airbyte.io>
Co-authored-by: alafanechere <augustin.lafanechere@gmail.com>
2022-08-11 19:27:08 +02:00
terencecho
4910f2502b Add source type to SourceDefinitionRead (#14967) 2022-07-25 09:38:11 -07:00
Anne
2285c2e854 update open api in correct place (#14652)
* update open api in correct place
2022-07-13 10:05:05 -07:00
Topher Lubaway
9c6c092a22 Revert "Improving docusaurus sidebar generation (#1927) (#14369)" (#14596)
This reverts commit a2c194a11f.
2022-07-11 15:27:14 -05:00
Mykyta Serbynevskiy
a2c194a11f Improving docusaurus sidebar generation (#1927) (#14369)
* Improving docusaurus sidebar generation (#1927)

* Added "Career & open positions" folder to sidebar, adjusted "Project overview" folder

* Deleted "career-and-open-positions" folder from sidebar
2022-07-08 14:18:27 -05:00
Harshith Mullapudi
a140c3e6ab fix: clone api doesn't take update configurations (#13592)
* fix: clone api doesn't take update configurations

* fix: you will be able to create clone in different workspace

* fix: added description to source/destination body
2022-07-04 21:29:19 +05:30
Charles
96d021ccbf add state type endpoint (#14111) 2022-06-27 22:40:21 -07:00
Charles
4c6d518154 fix stream name in stream transformation update (#14044) 2022-06-24 07:43:30 -07:00
Charles
2378b87157 add streams to reset to job info (#13919) 2022-06-22 10:52:54 -07:00
Charles
bbb340f9f1 add catalog diff connection read (#13918) 2022-06-22 08:57:36 -07:00
Charles
e89846cba9 update api for per stream (#13835) 2022-06-17 10:59:41 -07:00
Evan Tahler
9aaa5135fd Display additional failure information when sync is expanded and jump to relevant log line (#12896)
* Display addtional failure information when sync is expanded

* rename

* Update airbyte-webapp/src/components/JobItem/components/FailureDetails.tsx

Co-authored-by: Tim Roes <tim@airbyte.io>

* fix bad merge

* jump to timestamp

* cleat timestamp when logs colapsed

* speed up search

* rename

* Do what @pedroslopez says

* Rebase from master after big API update

* `floor` matchtimes for greater range matching

* Update airbyte-webapp/src/components/JobItem/components/ErrorDetails.tsx

Co-authored-by: Tim Roes <tim@airbyte.io>

* Update airbyte-webapp/src/components/JobItem/components/ErrorDetails.tsx

Co-authored-by: Tim Roes <tim@airbyte.io>

* Update airbyte-webapp/src/components/JobItem/components/Logs.tsx

Co-authored-by: Tim Roes <tim@airbyte.io>

* Update airbyte-webapp/src/components/JobItem/JobItem.tsx

Co-authored-by: Tim Roes <tim@airbyte.io>

* replace regexp with `dayJs`

* Extract dayjs into globals module

* mach time in full-second resolution

* revert `dayJs` and use `Date.parse`

* Just show failure timestamp rather than scroll

Co-authored-by: Tim Roes <tim@airbyte.io>
2022-05-26 15:36:49 -07:00
Malik Diarra
dda50e142f Update the sourceCatalogId field when the schema is updated (#12505)
* Set SourceCatalogId during connectionUpdate operation

* Return catalogId when get a connection

* Fix db operation of standardSync.sourceCatalogId

- value is not set correctly during update operation
- value is not read

* UI modification to set the sourceCatalogId

* remove sourceCatalogId from diff computation

Co-authored-by: alafanechere <augustin.lafanechere@gmail.com>
2022-05-04 07:57:05 -07:00
Subodh Kant Chaturvedi
405bf4daad workspaceId should be part of spec request (#12112)
* workspaceId should be part of spec request

* address review comment

* fix test

* format

* update octavia according to API changes

* create integration test for definition generation

* fix test

* fix test

Co-authored-by: alafanechere <augustin.lafanechere@gmail.com>
2022-04-22 19:30:06 +05:30
Malik Diarra
82e31c7ce7 Store the identifier of the catalog of the source when creating a new connection (#11610)
* Store source_catalog_id when creating a connection

* Set sourceCatalogId when creating a new connection

* Fix formatting
2022-04-21 15:31:11 -07:00
Tim Roes
25b65c6bb1 Improve onboarding performance (#11682)
* Improve onboarding performance

* Fix auto import issues

* Fix minor issues

* Regenerate index.html

* Add JUnit tests
2022-04-04 18:49:22 -07:00
terencecho
e0aa76d357 Create CustomerIO email notification client (#11220)
* Create CustomerIO email notification client

* remove unused docker yaml changes

* Remove unused comments

* Add unit test

* Rename to customerio specific notification client

* Rename email to customerio

* re-build
2022-03-31 08:01:46 -07:00
Peter Hu
bd54d4ac99 Define APIs for scoped connector definitions (#11244)
* listActorDefinitions apis now require workspaceId

- listSourceDefinitions takes workspaceId
- listDestinationDefinitions takes workspaceId

* actorDefinitionCreate apis now require workspaceId

- SourceDefinitionCreate takes workspaceId
- DestinationDefinitionCreate takes workspaceId

* source_definitions/list_opt_in

* destination_definitions/list_opt_in

* create/delete source definition grants

* create/delete destination definition grants

* PR feedback

- remove use of opt-in
- update description of definition list apis

* new create/list source definition routes

- create new routes instead of making breaking changes to existing ones
- existing create/list routes will be repurposed as admin only routes

* new create/list destination definition routes

- create new routes instead of making breaking changes to existing ones
- existing create/list routes will be repurposed as admin only routes

* revert acceptance test changes

* new update/delete actor definition routes

- create new routes instead of making breaking changes to existing ones
- existing create/list routes will be repurposed as admin only routes

* rearrange routes in config.yaml

* PR feedback

* new create actor definition routes

- create new routes instead of making breaking changes to existing ones
- existing create/list routes will be repurposed as admin only routes

* typo

* typo
2022-03-21 19:05:10 -07:00
Malik Diarra
3d9f9ec5a8 Cache schema during discoverSchema (#10820)
* Make SchedulerHandler store schema after fetching it

* Add `disable_cache` parameter to discover_schema API

* Return cached catalog if it already exists

* Address code review comments

* Add tests for caching of catalog in SchedulerHandler

* Format fixes

* Fix Acceptance tests

* New code review fixes

- Use upper case for global variable
- Inline definition and assignment of variable
2022-03-17 06:40:58 -07:00
Harshith Mullapudi
fa8cd83e30 Harshith/connection updates (#11153)
* Feat: first cut to allow naming for connections

* fix

* fix: migration

* fix: migration

* fix: formatting

* fix: formatting

* fix: tests

* fix: -> is bit outside of what we do generally

* fix: tests are failing

* fix: tests are failing

* fix: tests are failing

* fix: tests are failing

* fix: tests are failing
2022-03-16 03:05:18 +05:30
Harshith Mullapudi
0afc31baa3 Revert "Feat: first cut to allow naming for connections (#10889)" (#11152)
This reverts commit 6225eecf29.
2022-03-15 15:38:49 +05:30
Harshith Mullapudi
6225eecf29 Feat: first cut to allow naming for connections (#10889)
* Feat: first cut to allow naming for connections

* fix

* fix: migration

* fix: migration

* fix: formatting

* fix: formatting

* fix: tests

* fix: -> is bit outside of what we do generally
2022-03-15 14:05:31 +05:30
Alasdair Brown
4e8c7bd521 fix[api] inconsistent casing on OperationID for Operations API (#10464)
* #10307 Fixes inconsistent casing on OperationID for Operations API

* update generated doc

Co-authored-by: alafanechere <augustin.lafanechere@gmail.com>
2022-03-01 17:07:02 +01:00
Azhar Dewji
05504e5e1f fix[api]: nullable connection schedule (#10107) 2022-03-01 16:40:40 +01:00
Charles
8078302bc3 Set resource limits for connector definitions: api layer (#10482) 2022-02-23 14:22:00 -08:00
Harshith Mullapudi
d0a5547670 feat: clone sources and destinations API (#10396)
* feat: clone sources and destinations API

* fix: source is pulled without secrets
2022-02-22 10:06:18 +05:30
Parker Mossman
5da184895f Add release_stage and release_date to ActorDefinition table (#10051)
* tombstone added to schema dump

* read/write actor_definition.tombstone in config persistence

* add tombstone field when loading from yaml seed persistence

* add tombstone to normalized_tables_schema.txt

* add test to ensure tombstone defaults to false

* add release_date and release_stage to actor_definition
- migration to add columns
- update json schema to add new fields
- update API schema to include new fields in definition reads
- update tests

* rename definition creation methods to include custom

* add format:date for releaseDate, and define shared releaseStage enum

* handle null releaseDate
2022-02-04 13:43:19 -08:00
Parker Mossman
01f4675a59 Add AttemptFailureSummary to API response (#10022)
* add attempt failure info to api yml

* populate failureSummary in JobConverter

* tests and formatting

* add Partial Success to glossary section of docs

* failure summary naming/enum tweaks

* tweak enum values and add retryable boolean instead of transient failureType
2022-02-04 11:52:24 -08:00
Tim Roes
8f2259587f Allow updating workspace names (#9686)
* Allow updating workspace names

* Add additional unit test

* Fix code styling

* Update slug as well

* Update indentations

* Pull name update into separate endpoint
2022-01-31 09:34:41 +01:00
Tim Roes
360e43800f Mark web backend APIs as non-public (#9813) 2022-01-27 09:37:19 +01:00
Harshith Mullapudi
0dfbfdc2e3 feat: added api to jobs handler to get required debug info (#9703) 2022-01-25 10:30:36 +05:30
Parker Mossman
a0079534fd Add totalStats and streamStats in Attempts API response (#9583)
* expose new stat fields in Attempts api response

* remove extranneous import
2022-01-20 14:03:30 -08:00
Jared Rhizor
b475aa9a69 decrease cost of health check (#9288) 2022-01-04 10:07:24 -08:00
Jared Rhizor
0f96b80b8d regenerate docs (#9166)
* don't interfere with generated api doc formatting

* update docs
2021-12-28 13:10:13 -08:00
Parker Mossman
9dfd0daf0a Add API endpoint and handlers to delete SourceDefinitions and DestinationDefinitions (#8826)
* add optional tombstone field to StandardSourceDefinition and update repository methods to use it

add new ConfigRepository unit tests to cover includeTombstone logic

whitespace nits

remove accidental import

let autoformat decide whitespace

set tombstone false when creating a SourceDefinition

set tombstone in a couple missed places

remove includeTombstone param from get repository methods

check for tombstone sourceDefinition in ConfigDumpImporter

add tombstone to DestinationDefinition as well

add sourceDefinition delete endpoint, handler, and tests. also fix up some variable names (source -> sourceDefinition) because of confusion and conflicts

add api endpoint to delete destination definitions

filter via stream instead of if-continue

fix comment formatting

* gradle format
2021-12-20 14:40:46 -08:00
Benoit Moriceau
f447183ada Bmoric/add endpoint to give feedback (#8005)
Add an endpoint that specify that the feedback have been given after the first sync
2021-11-19 10:51:58 -08:00
Benoit Moriceau
0d51742e27 Bmoric/complete first sync (#7832)
After a sync is completed, we tag all the workspace with related to this sync as having a first sync completed.

This will then be forwarded to the UI in another PR.

This is part of #5884
2021-11-17 16:12:30 -08:00
Jenny Brown
d6c684b3e4 Enhance API for use by cloud to provide per-connector billing info (#7893)
* Enhance API for use by cloud to provide per-connector billing information

* Add listAllConnectionsForWorkspace to include deleted

* Config for list all connections

* Merged master, and formatting

* Formatting

* Name change per PR suggestion

* Name change per PR suggestion

* Formatting again
2021-11-16 12:15:15 -06:00
Christophe Duong
fa040da084 Implement protocol change for OAuth outputs (#7917)
* Change OAuth API

* Change protocol for new OAuthConfigSpecification

* Refactor OAuth classes and tests

* Remove webbackend source/destination creation

* Change from webback to normal API

* Implement new protocol change with OAuth specs

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>

* format

* format

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
2021-11-15 14:36:50 +01:00