Commit Graph

49 Commits

Author SHA1 Message Date
Ilia Brovarnik
37ac8e237a Default schema completion
(cherry picked from commit 7e836c1df5a1e016b384db746055346ca13282d5)

FLEET-MR-5118

GitOrigin-RevId: 17839900776efbd5599faf4aa06ef3d3a8b6f494
2024-10-10 13:38:01 +00:00
Alexander Zolotov
cf003cbd8d [fleet] fix broadcasting opening editor event
GitOrigin-RevId: 35c0b7cd98a780e3c12c0414a35ac98d06d942e0
2024-10-10 00:37:51 +00:00
Alexander Zolotov
f2b03dbb7e [fleet] reimplement AiAuthError with the new rhizome api
GitOrigin-RevId: 59b80145b772a76b296367c1dcf50fd9a5ce297b
2024-10-09 11:11:52 +00:00
Vladimir Krivosheev
f88f078dda bazel: update model
GitOrigin-RevId: dcd1f70f9ee2d7f04919b2da0eb725d6c5e54c3d
2024-10-07 12:22:54 +00:00
Andrey Zaytsev
29bf8c213c [fleet] temporary measure to fix short-circuit run configuration
somehow DbContext.threadLocal stuck on UI thread after some previous tests, resulting in poisoned DbContext on the thread of db-free tests. DbContext.isBound returns true, and consequent db reads fail with poison-exception, resulting in massive test failures.

GitOrigin-RevId: 2dc6b487761ab408bc1b78e49558424c89e8abd5
2024-10-04 19:58:45 +00:00
Iurii.Sukhanov
6c8a7e35f4 [fleet][dotnet] fix topology client usage
GitOrigin-RevId: 93e9e55ac276ca0d24c426661f2493513ce92de0
2024-10-03 18:14:09 +00:00
Alexander Zolotov
96b933e241 [fleet] use an unlimited channel while processing db changes in rete
GitOrigin-RevId: 1a1be92e2c902e4fead807a9dd07b51e4d045cd4
2024-10-02 16:52:52 +00:00
Mikhail Filippov
1a52450b5e bump compiler plugins
GitOrigin-RevId: 5b198d1b9b7d726c792aa1edd065ccd26ee0aab6
2024-10-01 18:24:20 +00:00
Nikolay Rykunov
6547c67d6d [rhizome/rpc] Update compiler plugin version to 2.0.20-0.2
GitOrigin-RevId: bcb0c04076f7b42325de875329e0ed250652e91e
2024-09-27 21:57:44 +00:00
Vladimir Krivosheev
a9e7930abe bazel - build lang-impl
GitOrigin-RevId: c4c4dce20bd6e4046644f95f6e7b3f437c51668d
2024-09-27 13:47:17 +00:00
Vladislav.Soroka
f8a99dafbd [fleet] do not set shortCircuit (randomly) when running from sources
GitOrigin-RevId: 122909ce8dc36bfb531459418665453d15fa5946
2024-09-26 17:44:09 +00:00
Daniil Ovchinnikov
cb2ac82b99 IJPL-162932 ignore UncheckedIOException as well
GitOrigin-RevId: 2862d592709f33fb9469065178a6b741bbf2d652
2024-09-26 00:05:03 +00:00
Alexander Shparun
358bf40a71 [fleet] remove durable from launchOnEachEntity
- it was considered a safe default, but people are surprised by unexpected retries
- it is inconsistent with Query.launchOnEach and other query terminators e.g. collect

GitOrigin-RevId: 109c5a8e961bd00b50155767f78abe08e5531c77
2024-09-25 22:42:51 +00:00
Alexander Shparun
ca98770be4 [fleet] move http ktor engine related code to rpc.server.ktor
GitOrigin-RevId: 09aee497f8c5f532380918456c3a2a1a0f0e13cb
2024-09-25 22:42:51 +00:00
Alexander Shparun
7968a25171 [fleet] Resource<*>.span
GitOrigin-RevId: 6860bb799d48da528d511fdbb7f96b619d946346
2024-09-25 22:42:51 +00:00
Alexander Shparun
137ee8f6af [fleet] reformat, dead code
GitOrigin-RevId: 11175e0ad26c8d37505e087eda48133c89c8e89e
2024-09-25 22:42:51 +00:00
Alexander Shparun
5c53a163d6 [fleet] propagate CancellationException as ProducerCancelled regardless of job.isActive
intellij cancels the rpc coroutine tree while clients are connected to it and they need a way to expect the resulting exceptions

GitOrigin-RevId: 27816c012a489e55132f806d4622d7c9ec200cf9
2024-09-25 22:42:51 +00:00
Vladimir Krivosheev
a1210118c0 bazel - fix JPMS, exports and internal
GitOrigin-RevId: 3dc80a9ee01e1900c0cebc24b2d08f04f93ddeff
2024-09-25 19:05:37 +00:00
Andrey Zaytsev
897f79bfc4 [fleet] major (This is a combination of 5 commits)
[fleet] throw new exception on attempt to access poisoned DbContext to see the access stacktrace

[fleet] FL-29872 Failed to navigate to NavigationParameters: 'Resource didn't emit'

safer version of resource constructor

[fleet] preserve exception kind

[fleet] rebase

[fleet] FL-29573 Argument covariance in EntityAttribute allows to write incorrect code

GitOrigin-RevId: 2f1937bc18efb4031f8420d7290550291a3db30c
2024-09-23 01:27:54 +00:00
Vladimir Krivosheev
4eb9b78b78 use bazel to build platform-impl
GitOrigin-RevId: b5bbc75323a08c7674777e512dcfd988ceb4461f
2024-09-22 17:01:28 +00:00
Vladimir Krivosheev
834bd75254 run jps-to-bazel by Bazel, compile platform using Bazel
GitOrigin-RevId: 3774d5adc404b02036f70b7cc35c9e60fdb5d84c
2024-09-21 00:54:17 +00:00
Vladislav.Soroka
f7abd34680 [fleet, backend] use IJ logger on backend FL-29598
GitOrigin-RevId: 7dca1dcfaa7b9343e67111631d2a24d8c5784042
2024-09-20 10:20:21 +00:00
Titouan Bion
6c9df4d083 [fleet] Migrate build.gradle.kts close to imls (actual migration)
(cherry picked from commit f9500472c3aaab65af9a9b4503fd660a42733b14)

FLEET-MR-5097

GitOrigin-RevId: 5255a7dc692bc4b680205bef947d8d4af7eed7b7
2024-09-19 21:51:43 +00:00
Titouan Bion
3b2e6670e2 [fleet] Prevent taking community directory as a IJ root
(cherry picked from commit 3cb32ae05488c8e09476339d5fe4a1e0f9944166)

FLEET-MR-5097

GitOrigin-RevId: 45dfe4930ee700db35209a332716f35e53fdcc98
2024-09-19 21:51:43 +00:00
Titouan Bion
4da48eea6a [fleet] Prepare ignores for when we'll move build.gradle.kts
(cherry picked from commit 3701fb184793f7c46be7f2532ed8d2e156104d96)

FLEET-MR-5097

GitOrigin-RevId: 43da81cdd8c6b993f527f0a3c57ae4ae60456e2a
2024-09-19 21:51:43 +00:00
Alexander Shparun
ecc3d78a3a [fleet] deprecating ServiceEntity<*>
GitOrigin-RevId: d26dd7e0cc2e2c5a4fd35a466e997e5fb9bf7611
2024-09-17 05:14:19 +00:00
Alexander Shparun
87e95b992a [fleet] make EntityType.upsert set the attribute that is used for lookup
GitOrigin-RevId: 124a7b5b1203edfa28b6ef095dc02bb04d42ae10
2024-09-16 05:59:36 +00:00
Alexander Shparun
6d0c9c150c [fleet] minor
GitOrigin-RevId: 768743af944ecc45bae2880bc7bf1ce0564887f3
2024-09-16 05:59:36 +00:00
Mikhail Filippov
3e491bf227 IJPL-161515 bump compiler plugin versions
GitOrigin-RevId: c3e4a168b839b22c1b304774e98523a54e72c900
2024-09-14 16:40:40 +00:00
Kate Botsman
a4effe8aa5 IJPL-160418 Fix flaky test RestartOfBackendRobotUiTest.gw deploy and restart of backend
If the frontend receives an event, "stream_closed" with an exception (except for `CancellationException`), it shuts down kernel.
This leads to inability to recover after such disconnect.

In Fleet thrown `RuntimeException` indicates that something is wrong with a setup because the cancellation order is determined.
In the case of Intellij, this exception happens because we cancel only top-level coroutine scope and order of children cancellation is unknown.

Instead of closing the channel in `invokeOnCompletion`, it can be closed in finally after subscribed has been canceled.
This way we do both: support cancellation from above (intellij case) and ensure there is no out-of-scope subscription (fleet case)

GitOrigin-RevId: 3fa7c670bad7a81e404997a1a2d9fb3572c94125
2024-09-13 09:45:16 +00:00
Alexander Zolotov
41934d857a [fleet, navigation] change the semantics of a contribution scope of view opening
Before, a contribution scope was a scope of opening. Any launch inside `Open` freezes the opening process. Now, the contribution scope lives while View is alive.

GitOrigin-RevId: c96bc10804d15b3996057f265b89a9c988aa1eb4
2024-09-09 22:04:12 +00:00
Clément de La Bourdonnaye
832ebcacd5 [fleet] replace shared with withDefaultPart in places newShared was migrated automatically
This was raising `attempted to query hidden partition: 4, allowed parts: [0, 2, 1]` issues depending on implementation

Also update the inspection to avoid further erroneous migration

GitOrigin-RevId: 89aa306fddd8f7207766da426bce4515395a83aa
2024-09-09 11:21:01 +00:00
Mihail Muhin
8ddd895e2d [fleet] remove fus internal mode property
GitOrigin-RevId: 99f68833f86fb0cc6fe6d37f6113bbbe4c3d4823
2024-09-06 06:30:48 +00:00
Mikhail Filippov
f13d92e82f IJPL-150165 switch to invoke dynamic lambdas in Kotlin
GitOrigin-RevId: 63ba45a21874cc723917982996fce1a510b2a182
2024-09-05 11:19:31 +00:00
Clement de La Bourdonnaye
bf87308d07 [fleet] rhizomedb: introduce temporary API to migrate lookup and lookupOne using base attributes on subclass
As documented in the code, lookup() was able to work with `subclass::baseAttribute` and return all instances of the subclass that has the base attribute value. With the new API, more boilerplate is necessary at the moment.

For lookupOne, while the replacement would work in all cases, some may benefit from a simple `entity() as? Subclass`, but it has to be decided on a case-by-case basis.

This API would keep track of such cases.

GitOrigin-RevId: be9a435388959a1371e2dd90675f3bb3a6143bec
2024-09-05 10:58:00 +00:00
Alexander Shparun
66775ae491 [fleet] rhizomedb-compiler-plugin:2.0.0-0.23
fixes incremental compilation issue seen on runtime as "entity type not found"

GitOrigin-RevId: afb988fa8323857b10ac26f72185adfab33ac474
2024-09-05 00:16:14 +00:00
Alexander Shparun
375362a1c5 [fleet] thread context element has no right to throw
GitOrigin-RevId: 5f098a78d5dfc7a5de281a0c9ee4ebed725a8112
2024-09-05 00:16:14 +00:00
Alexander Shparun
46a7c0c30f [fleet] replace check with warn for now
the assertion revealed issues in unexpected places

GitOrigin-RevId: b0b9915c93a66f100a33095da751a6a259c6aca1
2024-09-05 00:16:14 +00:00
Alexander Zolotov
27d041b6e6 [fleet] remove reflection from kernel
GitOrigin-RevId: 28d03a86c7a47b09032b33f802653f36e778b37f
2024-09-04 15:58:53 +00:00
pavel.sergeev
ef016a4baa [fleet] regenerate project
GitOrigin-RevId: 4055a4c836ff0f4f316ee72ef20fcc0c68b2b924
2024-09-02 19:29:18 +00:00
pavel.sergeev
0d53d312d3 [fleet][Islands] FL-26214 refactor, update fonts according to Figma, tune baselines
GitOrigin-RevId: 4baca8f0a3a3fd63309d41da28fe96273eaa4c37
2024-09-02 19:29:18 +00:00
Valery Teplyakov
6e9ea7f354 [fleet, rhizome] Rhizomedb 0.21 -> 0.22
GitOrigin-RevId: 09031367563016ab6b0f572fc34171e7bb3811d1
2024-09-02 13:55:53 +00:00
Andrey Zaytsev
b4cad9c6ef IJPL-150165 [fleet] avoid registering Entity.eid as an attribute
GitOrigin-RevId: 47c04bc657aa0af3e117dbe1b24180111e2ad71a
2024-08-30 22:15:56 +00:00
Mikhail Filippov
5ab2a6b076 IJPL-150165 update rpc-compiler-plugin
GitOrigin-RevId: ae85eb9ae0befb576739d48e37a0a36566cf5776
2024-08-30 22:15:55 +00:00
Mikhail Filippov
bf43f2fc01 IJPL-150165 bump Kotlin language and API version
GitOrigin-RevId: a59dc8ca214a5047773fccf1cf28a1e1b07acf68
2024-08-30 22:15:55 +00:00
Mikhail Filippov
9a264c6686 IJPL-150165 upgrade Kotlin compiler to 2.0.0
GitOrigin-RevId: 692902f83ee871cc24abc0e742b05b37405da002
2024-08-30 22:15:55 +00:00
Daniil Ovchinnikov
860837cd20 [fleet] throw CE on transactor termination
GitOrigin-RevId: c2a70c26a4c2a35f13c13c00e4c14b4df6f8c7c9
2024-08-30 18:07:30 +00:00
Daniil Ovchinnikov
e21c62f888 IJPL-158930 use source dependencies instead of libraries
GitOrigin-RevId: 1e3eadc80f542a6d46336c34b8e8d04a9f33c231
2024-08-30 18:07:30 +00:00
Daniil Ovchinnikov
082111eb3e IJPL-158930 move Fleet's kernel/rpc modules and their dependencies to community/fleet
GitOrigin-RevId: be5ac03d8786808b82bdcca580a62cf47324c31c
2024-08-30 18:07:30 +00:00