Commit Graph

3623 Commits

Author SHA1 Message Date
Vladimir Krivosheev
6a2fad16fd update bazel files
GitOrigin-RevId: 2ed0dcc0adee0e0fd534cb73d2592794f70161ff
2025-05-09 06:32:12 +00:00
Nikolay Chashnikov
ad7effd1a3 [github] cleanup: remove unused dependency on intellij.json.backend
It isn't used in code and won't work at runtime anyway because there is no corresponding dependency in the plugin descriptor. This change is also necessary to avoid failures in the test which verifies dependencies (IJPL-171921).

GitOrigin-RevId: 2229953ded53a61b56e6865aa2b79a113502e6ee
2025-05-08 17:33:47 +00:00
Vladimir Krivosheev
6f8ff07ccc simplify bazel labels (another step towards using simple names that reflect directory structure)
GitOrigin-RevId: 12bfb2d0fa315d87c7a4ade363d0f834cf324b71
2025-05-08 16:58:30 +00:00
Chris Lemaire
3a1c0104ef [github] Fix outdated checks and add a registry for disabling them (IJPL-185867)
Fixed only 1 part of the issue.
Seems that ETags don't work on our test tenant instance though.
This seems to be on the deployment side, but further investigation is needed.

GitOrigin-RevId: dcfad982e18d8489d7c60a39cb28118e5c92c395
2025-05-07 09:36:36 +00:00
Aleksey Pivovarov
280b9eee39 IJPL-181752 github: do not throw CancellationException from VirtualFile.isValid checks
GitOrigin-RevId: 1776bd1fd549a779664a118af7c5f8cc75b00d3a
2025-05-02 10:27:17 +00:00
Gregory.Shrago
421140029d drop deprecated DataProvider usages
GitOrigin-RevId: a3ee2786b05e096e2ff56ba0f940b95ffc3ee2c3
2025-05-01 01:49:10 +00:00
Gregory.Shrago
5963235ef9 introduce ContentManager.addUiDataProvider
Old API is a performance problem.

GitOrigin-RevId: bcd953d84601c82500e0718a12e044ae6b1675f0
2025-04-30 20:37:23 +00:00
Chris Lemaire
a89eb8e4cd [github] Refactor GHPRListLoader to be flow-based
This gets rid of the problem that the entire list was cleared upon re-opening the tool window.
That's a side-effect of using the 'cleverish' refresh from the generic list loader.

GitOrigin-RevId: 0c2fde9dab6dc4fa381ca9a0f89404f0abc5925a
2025-04-25 13:51:13 +00:00
Chris Lemaire
55187f0aa2 [collab] Rename 'refresh' to 'reload' in ReviewListViewModel
reload -> to completely empty the list and start fresh (sometimes called force refresh?)
refresh -> may do a reload, but is allowed to be smarter

GitOrigin-RevId: 862795433e7245fc062ce14d235525853c03605e
2025-04-25 13:51:13 +00:00
Chris Lemaire
8bf5d25575 [collab/gh/gl] Add utility for getting a flow of changes
Replaces existing logic for `createListPanel` and is always ordered in a reproducible way.

GitOrigin-RevId: 75afdce8618ec26765a33b173fa26540427204bb
2025-04-25 13:51:13 +00:00
Chris Lemaire
b7ff27db73 [github] Shush rate limit logging
GitOrigin-RevId: 69b248b1455f6f156bbfb77be19588896c1dd1ae
2025-04-25 13:51:13 +00:00
Ilia Kirianovskii
47b5d34b7a [bazel] Update build files
GitOrigin-RevId: 9dee760054b4b7395163e838d84c16eeeaeee8e5
2025-04-24 13:57:44 +00:00
Chris Lemaire
9514416a1b [gh/gl] Explicitly provide editor tab titles (IJPL-183254)
#IJPL-183254 Fixed

The editor tab title-providing mechanism is a little wonky.
It relies on some check to see if the `getPath` method for Virtual files contains something that looks realish.
The one for GitHub turns out to look realish, but the one for GitLab does not.
Better not to rely on that and use the explicit mechanism.

See: com.intellij.openapi.wm.impl.PlatformFrameTitleBuilderKt.doGetFileTitle

GitOrigin-RevId: 24483266aa97cf81a1b0486eb41949681fe6fc49
2025-04-23 21:27:04 +00:00
Chris Lemaire
815627389a [github] GHE.com refs should be found even without a login (IJPL-182223)
#IJPL-182223 Fixed

We know for sure that .ghe.com links are resolvable (assuming the user is logged in), because .ghe.com domains are
(almost) always valid GitHub enterprise servers.

GitOrigin-RevId: fec4b0f5db3e26a6fc67f80e748bf3259562c5c6
2025-04-23 19:51:04 +00:00
Chris Lemaire
11b478eb96 [github] Fix bot reviewers not showing correctly (IJPL-185056)
#IJPL-185056 Fixed

GitOrigin-RevId: 27aa910287543392abf054bb30f20c70951c0123
2025-04-23 15:57:24 +00:00
Ilia Kirianovskii
675eab0b82 [bazel] Update build files
GitOrigin-RevId: 8666e87d2a1221f1d48e9c170bdf632ed0cfd6d9
2025-04-22 20:36:03 +00:00
Ilia.Shulgin
d623f62c74 IJPL-173922 Move message bundles to shared modules
GitOrigin-RevId: 0ba16988db20294b632d7de73574c1b5ae2bb04a
2025-04-17 14:37:47 +00:00
Ilia Kirianovskii
89c85d2010 [bazel] Update build files
GitOrigin-RevId: af3042e03f41418c35e85067add901cfffe043c0
2025-04-16 00:14:45 +00:00
Anna Rakhmukova
5a3bc6504a [gig] Add an account menu to the welcome screen
GitOrigin-RevId: 0bc1bb8f74ab10f650c6dae1f3fafe8f379fb466
2025-04-14 21:34:13 +00:00
Anna Rakhmukova
74cb188ae0 [gig] Implement welcome screen login page
GitOrigin-RevId: 3a83b0611de9a2ba1794dbd8ce4b54af88a29e96
2025-04-14 21:34:13 +00:00
Chris Lemaire
eac02dbc4a [tasks/github] Add the advanced_search param (IJPL-180348)
GH decided to break links by having them repurposed as a deprecation warning.
Explicitly marking our query as 'advanced' is enough to ignore this.

#IJPL-180348 Fixed

GitOrigin-RevId: 3cee15779eacc58233a3b40b15aa61ff054a3891
2025-04-14 13:31:56 +00:00
Ilia.Shulgin
6ab6f53788 [git] Move GitReference hierarchy to shared module
GitOrigin-RevId: b9bfd2c96c68c3403d961912e18f236c4905ff20
2025-04-13 22:07:30 +00:00
Chris Lemaire
bbd2a2babb [collab/gh] Add missing checks for setting the default account (IJPL-73040)
What could happen is that one would set an account to default and
remove that account in the same transaction.
In that case, the default account would still be set and not checked.

We should probably remove or revise the notification completely,
since many things tend to work fine without an explicit default account.

#IJPL-73040 Fixed

GitOrigin-RevId: 40421b83468d0957d9ff1a238e52d3ad9f7d13c4
2025-04-09 16:28:39 +00:00
Mikhail Filippov
493c93a4bf IJPL-182711 bump Kotlin language version
GitOrigin-RevId: 0beaed34efbd3b42a739dddd78de097b4e1d09c5
2025-04-09 14:26:59 +00:00
Chris Lemaire
0a967f9219 [ghai] Ensure a check is in place for every line of a multiline comment range (IJPL-72847)
#IJPL-72847 Fixed

This makes sure that the multiline comment action is disabled
when any of the lines cannot be commented on.
Sadly GitHub is strict with this policy, so it's not avoidable, better to not let users start the process on such lines.

GitOrigin-RevId: 6e2ca4df2c1a84bede25ce34709d7ed303b36731
2025-04-08 11:04:23 +00:00
Anna Rakhmukova
c4d8460a38 [git] Extract clone logic to GitCloneUtils
GitOrigin-RevId: 9c33411baae34defcf5ab81b6c54ade3630b73f2
2025-04-07 19:32:18 +00:00
Vadim Salavatov
c027034556 [plugins] IJPL-181065 CompositeMessageBus: decouple listener's plugin descriptor from listener descriptor
GitOrigin-RevId: e2e78734e543b52fdb8794550db06d52bd4ac0c5
2025-04-07 12:30:06 +00:00
Vladimir Krivosheev
a97d7cd683 update bazel files
GitOrigin-RevId: 284eac823036330f6f242a4799a128a77a191cc0
2025-04-04 06:14:49 +00:00
Chris Lemaire
3387be71f3 [github] Add a fake ghost user for GHE servers (IJPL-174769)
Didn't check every single usage, but in an ideal world,
this user should never leak into an API request.

Erroneous usages of the FAKE ghost user should be found when reported
and replaced with `null`, because in this case it's apparently
possible not to have a user assigned at all.

To be abundantly clear: this FAKE ghost user replaces github.com/ghost
in case one does not exist on the server.

GitOrigin-RevId: 6a1f48e6751992463cbe5c43b740ef2ab0f999fa
2025-04-03 13:54:08 +00:00
Nikita Katkov
1393d86af9 [json + remdev] IJPL-176240 Update all runtime plugin dependencies: now most of the plugins depend on the json.backend module as they expect corresponding functionality and API to be available (primarilly Json Schema-related features)
GitOrigin-RevId: 141b7732330eefa01fdada3413e434fe7d2d512b
2025-04-03 13:08:20 +00:00
Nikita Katkov
78cc56f105 [json + remdev] IJPL-176240 Rename json module usages to json.backend
GitOrigin-RevId: 25345a8aeb70dd611dfd7447ae3d1b953d9df4e1
2025-04-03 13:08:19 +00:00
Chris Lemaire
92fc2f6431 [gh/gl] Don't cache our custom virtual files (IJPL-181752)
GitOrigin-RevId: 48804c805315c030d5b9a67a98f9ee20b83616b9
2025-04-02 09:58:53 +00:00
Sergei Vorobyov
4ee72cd265 [TrustedProjects] cleanup: migrate code on the public trusted projects API
### Issues
  * IJPL-172505 Trusted Projects' API is marked as Experimental

GitOrigin-RevId: 5b0bc732be7334633846c919347affd71774459d
2025-03-14 21:12:53 +00:00
Anna Rakhmukova
24ed19b540 [gig] Show github pull request details
GitOrigin-RevId: 0373b275c2cdf4e5363d04e5be3e138ad99c1233
2025-03-12 11:50:43 +00:00
Anna Rakhmukova
f434159b9b [github] Reusable GHPRDetailsComponentFactory
GitOrigin-RevId: 2224ad35e75b3576ee7ef225862629da4b515a53
2025-03-12 11:50:43 +00:00
Anna Rakhmukova
ae3aa601e1 [gig] Show github pull request timeline and diff
GitOrigin-RevId: b30bf77602f822df190f6f5661133218c4c2fcc0
2025-03-12 11:50:43 +00:00
Ivan Semenov
49a291dd8c [github] extract PR timeline ui utils
GitOrigin-RevId: 5a0238c954eadcc52b3c19de37579d7f91c40628
2025-03-12 11:50:43 +00:00
Ivan Semenov
888b6a0771 [github] restore equals/hashCode for PR timeline file
GitOrigin-RevId: 585012e5a6d314a0c5d57e18acf25fd1c7b437a9
2025-03-12 11:50:43 +00:00
Anna Rakhmukova
7eba5b954d [github] Create timeline UI in GHPRTimelineComponentFactory
GitOrigin-RevId: 4402d1b8239ce16cae2173b83184a460863714d8
2025-03-12 11:50:43 +00:00
Anna Rakhmukova
2fd870a496 [github] Reusable GHPRDiffService
GitOrigin-RevId: b3d1db9027dc6905b77ff99809090ea9c53bb9d3
2025-03-12 11:50:43 +00:00
Anna Rakhmukova
fdbb0337da [gig] Show github pull request list
GitOrigin-RevId: 8a25ba60deb86c7a07487f3753b658342e832235
2025-03-12 11:50:42 +00:00
Anna Rakhmukova
8c644f7e71 [github] Make GHRepositoryAndAccountSelectorComponentFactory internal
GitOrigin-RevId: 0afe4e658478b5e3fe6a9a16e363db9b3f22565a
2025-03-12 11:50:42 +00:00
Anna Rakhmukova
70bde9ba62 [github] Reusable GHPRListPanelFactory
GitOrigin-RevId: bc78c1bd1048496bef2cb1f25cd8f4e3c6a17156
2025-03-12 11:50:42 +00:00
Anna Rakhmukova
d81fc712fc [github] Create GHPRConnectedProjectViewModel using factory
GitOrigin-RevId: ce3d4e767f093756d0070837b487c8aa0499d7fe
2025-03-12 11:50:42 +00:00
Anna Rakhmukova
826828d1ea [github] Create GHPRToolWindowViewModel based on GHPRProjectViewModel
GitOrigin-RevId: 2af6cb9709087c4f8151b6de42c30a8e6f4f2683
2025-03-12 11:50:42 +00:00
Anna Rakhmukova
01a514c134 [github] Extract GHPRConnectedProjectViewModel interface
GitOrigin-RevId: 2deee78f18b37dac623af8dce2f5ad6736799a49
2025-03-12 11:50:42 +00:00
Anna Rakhmukova
b32f7cad11 [github] Pass activate callback instead of GHPRToolWindowViewModel
GitOrigin-RevId: 41a901731abf34153f4addc55a4ee9a7819334fa
2025-03-12 11:50:42 +00:00
Nikita Katkov
73398d93a7 [github & gitlab] IJPL-171311 Bundle ultimate plugin versions into community IDEs built by ourselves
The existing gitlab.community and github.community modules that describe community versions of plugins with less functionality included do still exist intentionally. This is required for external developers to be able to build IDE from community project sources and get both plugins working there out of the box. Thus community plugins are still listed in IdeaCommunityProperties and PyCharmCommunityProperties. This part is only required for third-party folks. As for internal builds, they employ a build context produced by `org.jetbrains.intellij.build.IdeaUltimateBuilderKt.createBuildContextForCommunityProduct` which in turn prefers github.ultimate and gitlab.ultimate plugin distributions over community ones

GitOrigin-RevId: e8233c7133d63abe3aefa684cc57ed9bad9fee64
2025-03-07 20:17:52 +00:00
Chris Lemaire
afc91ef2fe [github] GHE.com fixes: also don't try to fetch metadata for DR instances (IJPL-174769)
GitOrigin-RevId: 6192df661aeebc78471e4693356e9a0a55330cee
2025-03-06 17:40:08 +00:00
Konstantin Nisht
22b3bdab40 [threading] IJPL-179181: Use Dispatchers.EDT instead of Dispatchers.Main
GitOrigin-RevId: 477c43b9b5d38ac04d4d706110e593a328a3ff82
2025-03-03 13:00:34 +00:00