This puts a version on GitLab's 'versionless' API.
For this, I pulled ~50 docker images, usually for different
minor versions. Starting at 8.1.2, going through to 12.0.0
only major versions were checked. 12.0 introduces a GraphQL
API that has downloadable metadata. For each version of
GitLab CE, I span up a container and retrieved a GQL schema.
The currently annotations only cover community edition APIs
as EE that's the docker images I got to pull. Currently,
these annotations might seem a bit much, but I believe it's
useful to have a constant reminder of compatibility in the
codebase rather than having a step in-between.
GitOrigin-RevId: 2722680168df507588895df12ea34451136a6941
The current set of changes is incomplete, but can be narrowed down
further with some investigation. REST endpoints and their changes need
to be documented completely manually, but for GraphQL changes, we can
download changelogs from various versions of GitLab.
GitOrigin-RevId: 973485ab607334fb072836c9b76befebeec072fc
it was planned to be used as a carrier for gid/iid but iid is used everywhere so there's no point
GitOrigin-RevId: 5315b017ae44e1b61613c769f75c4c742530076a
- Replace `.trim().isEmpty()` with `.isBlank`
- Split off PathHandlingMode into a separate class
- Allow emitting values directly to account flow of VM
- Make fields of dialog grow horizontally
- Make description field 4 rows tall and make it grow with the row
- Rename `canOpenDialog` to `canCreateSnippet`
- Refactor suspend + explicit CoroutineScope param to just be suspend functions
- Fix coroutine scope for create snippet window to be modal
- Remove unused bundle messages
- Ensure the child scopes of a surrounding coroutineScope are finished before ending the outer scope
- Refactor the result of a view model to be a new data class
- Remove attempts to circumvent dumb GL lowercase naming schemes with a 'value' field in enum
- Remove unused imports
- Simplify getting Http result extracted
- Always show 'snippet' created notification when successful
- More explicitly show and set the scope of repository flows
- Replace shared flows in VM with modelFlow
- Validate create snippet dialog with built in doValidate
- Ask user to re-login if no token could be found for the user
GitOrigin-RevId: 76a1c5b0462c87f05fa30a0d65bdbd7a81abf8d9
- Fix compilation by reverting accidental change during rebase
- Refactor VM to make it own the collectContents call
- Factor out duplicate calls to service() in service test and view model
- Bump VCS counters version
- Surround collecting content with read action
- Remove check that HTTP status is not 200
- Fix CoroutineScope passed to VM not being a temp. CS
- Make file name extractor a suspend function and change read action
- Split off some functions from the performCreateSnippet function for readability
Specifically: creating the snippet using GL GQL API
and showing and getting dialog results
- Factor out action events from service methods
GitOrigin-RevId: 4d15f1b1651e410d05673eef255d7ff3f698a27c
Additionally:
- Fixes a so-far unknown bug/feature which caused only the first selection in a multi-select to be uploaded.
Honestly don't think it'll appear often that someone wishes to do that though.
'fix' is to pass `true` to the function gathering selected text.
Leftover debt:
- Some println's used to debug
- No tests.
Currently known issues:
- Does not handle errors from GQL for instance in an ideal way.
- UI of 'Create Snippet' dialog may require some updating.
Specifically account select may be moved, the UI should be resized, etc.
- The first account is currently not selected automatically.
- Title can be left empty, but should be required.
- The 'Create Gist' button should not appear when content is empty or there are no logged in accounts.
Project is left intentionally unselected, but might be best to automatically select in the future?
GitOrigin-RevId: f2caeee92d07ada938dfda131884d166cd007336
We do not use the returned value anyway and CE server returns a different response
#IDEA-327549 Fixed
GitOrigin-RevId: c76475602782a1dc2ca9d7257ecff10c4dd97154