Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
46df8e869e
commit
51921ec236
|
|
@ -15,8 +15,6 @@ module Packages
|
|||
|
||||
attribute :fields, default: -> { {} }
|
||||
|
||||
ignore_column :semver_patch_convert_to_bigint, remove_with: '18.2', remove_after: '2025-06-20'
|
||||
|
||||
validates :package, :project, presence: true
|
||||
validates :fields, json_schema: { filename: 'terraform_module_metadata', detail_errors: true },
|
||||
if: -> { fields.present? }
|
||||
|
|
|
|||
|
|
@ -28455,8 +28455,8 @@ four standard [pagination arguments](#pagination-arguments):
|
|||
|
||||
| Name | Type | Description |
|
||||
| ---- | ---- | ----------- |
|
||||
| <a id="groupaiusermetricsenddate"></a>`endDate` | [`Date`](#date) | Date range to end at. Default is the end of current month. \ ClickHouse needs to be enabled when passing this param. |
|
||||
| <a id="groupaiusermetricsstartdate"></a>`startDate` | [`Date`](#date) | Date range to start from. Default is the beginning of current month. \ ClickHouse needs to be enabled when passing this param. |
|
||||
| <a id="groupaiusermetricsenddate"></a>`endDate` | [`Date`](#date) | Date range to end at. Default is the end of current month. |
|
||||
| <a id="groupaiusermetricsstartdate"></a>`startDate` | [`Date`](#date) | Date range to start from. Default is the beginning of current month. |
|
||||
|
||||
##### `Group.approvalPolicies`
|
||||
|
||||
|
|
@ -36209,8 +36209,8 @@ four standard [pagination arguments](#pagination-arguments):
|
|||
|
||||
| Name | Type | Description |
|
||||
| ---- | ---- | ----------- |
|
||||
| <a id="projectaiusermetricsenddate"></a>`endDate` | [`Date`](#date) | Date range to end at. Default is the end of current month. \ ClickHouse needs to be enabled when passing this param. |
|
||||
| <a id="projectaiusermetricsstartdate"></a>`startDate` | [`Date`](#date) | Date range to start from. Default is the beginning of current month. \ ClickHouse needs to be enabled when passing this param. |
|
||||
| <a id="projectaiusermetricsenddate"></a>`endDate` | [`Date`](#date) | Date range to end at. Default is the end of current month. |
|
||||
| <a id="projectaiusermetricsstartdate"></a>`startDate` | [`Date`](#date) | Date range to start from. Default is the beginning of current month. |
|
||||
|
||||
##### `Project.alertManagementAlert`
|
||||
|
||||
|
|
|
|||
|
|
@ -331,10 +331,6 @@ and [RSpec matcher examples](https://gitlab.com/gitlab-org/gitlab/-/blob/master/
|
|||
|
||||
The application needs to know how to map incoming requests to an organization. The mapping logic is encapsulated in [`Gitlab::Current::Organization`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/current/organization.rb). The outcome of this mapping is stored in a [`ActiveSupport::CurrentAttributes`](https://api.rubyonrails.org/classes/ActiveSupport/CurrentAttributes.html) instance called `Current`. You can then access the current organization using the `Current.organization` method.
|
||||
|
||||
Since this mapping depends on HTTP requests, `Current.organization` is only available in the request layer (Rails controllers,
|
||||
Grape API, and GraphQL). It cannot be used in Rake tasks, cron jobs or Sidekiq workers. This is enforced by a RuboCop rule. In
|
||||
those cases, the organization ID should be derived from something else (related data) or passed as an argument.
|
||||
|
||||
### Availability of `Current.organization`
|
||||
|
||||
Since this mapping depends on HTTP requests, `Current.organization` is available only in the request layer. You can use it in:
|
||||
|
|
@ -343,6 +339,8 @@ Since this mapping depends on HTTP requests, `Current.organization` is available
|
|||
- GraphQL queries and mutations
|
||||
- Grape API endpoints (requires [usage of a helper](#usage-in-grape-api)
|
||||
|
||||
In these request layers, it is safe to assume that `Current.organization` is not `nil`.
|
||||
|
||||
You cannot use `Current.organization` in:
|
||||
|
||||
- Rake tasks
|
||||
|
|
@ -351,6 +349,23 @@ You cannot use `Current.organization` in:
|
|||
|
||||
This restriction is enforced by a RuboCop rule. For these cases, derive the organization ID from related data or pass it as an argument.
|
||||
|
||||
### Writing tests for code that depends on `Current.organization`
|
||||
|
||||
If you need a `current_organization` for RSpec, you can use the [`with_current_organization`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/spec/support/shared_contexts/current_organization_context.rb) shared context. This will create a `current_organization` method that will be returned by `Gitlab::Current::Organization` class
|
||||
|
||||
```ruby
|
||||
# frozen_string_literal: true
|
||||
require 'spec_helper'
|
||||
|
||||
RSpec.describe MyController, :with_current_organization do
|
||||
let(:project) { create(:project, organization: current_organization) }
|
||||
|
||||
subject { project.organization }
|
||||
|
||||
it {is_expected.to eq(current_organization) }
|
||||
end
|
||||
```
|
||||
|
||||
### Usage in Grape API
|
||||
|
||||
`Current.organization` is not available in all Grape API endpoints. Use the `set_current_organization` helper to set `Current.organization`:
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ Follow these steps for your IDE:
|
|||
- [Visual Studio](../../../../editor_extensions/visual_studio/setup.md)
|
||||
- [GitLab Duo plugin for JetBrains IDEs](../../../../editor_extensions/jetbrains_ide/setup.md)
|
||||
- [`gitlab.vim` plugin for Neovim](../../../../editor_extensions/neovim/setup.md)
|
||||
- [GitLab for Eclipse](../../../../editor_extensions/eclipse/setup.md)
|
||||
|
||||
## Turn on Code Suggestions
|
||||
|
||||
|
|
@ -108,6 +109,21 @@ To review certificates you've already accepted:
|
|||
1. Select [**Server Certificates**](https://www.jetbrains.com/help/idea/settings-tools-server-certificates.html).
|
||||
1. Select a certificate to view it.
|
||||
|
||||
### Eclipse
|
||||
|
||||
{{< alert type="note" >}}
|
||||
|
||||
To enable GitLab Duo Code Suggestions, open an Eclipse project. If you open a single file, Code Suggestions is disabled for all file types.
|
||||
|
||||
{{< /alert >}}
|
||||
|
||||
To verify that Code Suggestions is turned on in Eclipse:
|
||||
|
||||
1. In Eclipse, open your GitLab project.
|
||||
1. In the Eclipse bottom toolbar, select the GitLab icon.
|
||||
|
||||
**Code Suggestions** displays as "Enabled".
|
||||
|
||||
### Neovim
|
||||
|
||||
Code Suggestions provides a LSP (Language Server Protocol) server, to support the built-in
|
||||
|
|
@ -171,6 +187,19 @@ regardless of which JetBrains IDE you use.
|
|||
|
||||
For more information, see the [JetBrains product documentation](https://www.jetbrains.com/help/).
|
||||
|
||||
### Eclipse
|
||||
|
||||
To disable Eclipse Code Suggestions for a project:
|
||||
|
||||
1. In the Eclipse bottom toolbar, select the GitLab icon.
|
||||
1. Select **Disable Code Suggestions** to disable Code Suggestions for the current project.
|
||||
|
||||
To disable Eclipse Code Suggestions for a specific language:
|
||||
|
||||
1. In the Eclipse bottom toolbar, select the GitLab icon.
|
||||
1. Select **Show Settings**.
|
||||
1. Scroll down to the **Code Suggestions Enabled Languages** section and clear the checkbox for the language you wish to disable.
|
||||
|
||||
### Neovim
|
||||
|
||||
1. Go to the [Neovim `defaults.lua` settings file](https://gitlab.com/gitlab-org/editor-extensions/gitlab.vim/-/blob/main/lua/gitlab/config/defaults.lua).
|
||||
|
|
|
|||
|
|
@ -35,8 +35,9 @@ To use Code Suggestions, use one of these editor extensions:
|
|||
| Microsoft Visual Studio (2022 for Windows) | [Visual Studio GitLab extension](https://marketplace.visualstudio.com/items?itemName=GitLab.GitLabExtensionForVisualStudio) |
|
||||
| JetBrains IDEs | [GitLab Duo Plugin for JetBrains](https://plugins.jetbrains.com/plugin/22325-gitlab-duo) |
|
||||
| Neovim | [`gitlab.vim` plugin](https://gitlab.com/gitlab-org/editor-extensions/gitlab.vim) |
|
||||
| Eclipse | [GitLab for Eclipse](../../../../editor_extensions/eclipse/setup.md) |
|
||||
|
||||
A [GitLab Language Server](https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp) is used in VS Code, Visual Studio, and Neovim. The Language Server supports faster iteration across more platforms. You can also configure it to support Code Suggestions in IDEs where GitLab doesn't provide official support.
|
||||
A [GitLab Language Server](https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp) is used in VS Code, Visual Studio, Eclipse, and Neovim. The Language Server supports faster iteration across more platforms. You can also configure it to support Code Suggestions in IDEs where GitLab doesn't provide official support.
|
||||
|
||||
You can express interest in other IDE extension support [in this issue](https://gitlab.com/gitlab-org/editor-extensions/meta/-/issues/78).
|
||||
|
||||
|
|
@ -46,31 +47,31 @@ The following table provides more information on the languages Code Suggestions
|
|||
|
||||
Code Suggestions also works with other languages, but you must [manually add support](#add-support-for-more-languages).
|
||||
|
||||
| Language | Web IDE | VS Code | JetBrains IDEs | Visual Studio 2022 for Windows | Neovim |
|
||||
|-------------------------------|----------------------------|---------------------------------------------------------------------------------------------|-----------------------|--------------------------------|--------------------------------------------------------------------------------------------------------|
|
||||
| C | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| C++ | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| C# | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| CSS | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No |
|
||||
| Go | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Google SQL | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| HAML | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| HTML | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No |
|
||||
| Java | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| JavaScript | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Kotlin | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes <br><br>(Requires third-party extension providing Kotlin support) | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Markdown | {{< icon name="check-circle-filled" >}} Yes |{{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No |
|
||||
| PHP | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Python | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Ruby | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Rust | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Scala | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes <br><br>(Requires third-party extension providing Scala support) | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Shell scripts (`bash` only) | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Svelte | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Swift | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| TypeScript (`.ts` and `.tsx` files) | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Terraform | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes <br><br>(Requires third-party extension providing Terraform support) | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes <br><br>(Requires third-party extension providing the `terraform` file type) |
|
||||
| Vue | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Language | Web IDE | VS Code | JetBrains IDEs | Visual Studio 2022 for Windows | Neovim | Eclipse |
|
||||
|-------------------------------|----------------------------|---------------------------------------------------------------------------------------------|-----------------------|--------------------------------|--------------------------------------------------------------------------------------------------------|---------|
|
||||
| C | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| C++ | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| C# | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| CSS | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No |
|
||||
| Go | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Google SQL | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="dash-circle" >}} No |
|
||||
| HAML | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| HTML | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No |
|
||||
| Java | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| JavaScript | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Kotlin | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes <br><br>(Requires third-party extension providing Kotlin support) | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Markdown | {{< icon name="check-circle-filled" >}} Yes |{{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No | {{< icon name="dash-circle" >}} No |
|
||||
| PHP | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Python | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Ruby | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Rust | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Scala | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes <br><br>(Requires third-party extension providing Scala support) | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Shell scripts (`bash` only) | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Svelte | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Swift | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| TypeScript (`.ts` and `.tsx` files) | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Terraform | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes <br><br>(Requires third-party extension providing Terraform support) | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="dash-circle" >}} No | {{< icon name="check-circle-filled" >}} Yes <br><br>(Requires third-party extension providing the `terraform` file type) | {{< icon name="check-circle-filled" >}} Yes |
|
||||
| Vue | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes | {{< icon name="check-circle-filled" >}} Yes |
|
||||
|
||||
{{< alert type="note" >}}
|
||||
|
||||
|
|
@ -167,4 +168,22 @@ To do this:
|
|||
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab title="Eclipse" >}}
|
||||
|
||||
Prerequisites:
|
||||
|
||||
- You have installed and enabled the [GitLab for Eclipse plugin](../../../../editor_extensions/eclipse/_index.md).
|
||||
- You have completed the [Eclipse setup](../../../../editor_extensions/eclipse/setup.md)
|
||||
instructions, and authorized the extension to access your GitLab account.
|
||||
|
||||
To do this:
|
||||
|
||||
1. In your Eclipse bottom menu, select the GitLab icon.
|
||||
1. Select **Show Settings**.
|
||||
1. Scroll down to the **Code Suggestions Enabled Languages** section.
|
||||
1. In **Additional Languages**, add a comma-separated list of language identifiers. Don't
|
||||
add leading periods to the identifiers. For example, use `html`, `md`, and `powershell`.
|
||||
|
||||
{{< /tab >}}
|
||||
|
||||
{{< /tabs >}}
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ClickHouse # rubocop:disable Gitlab/BoundedContexts::ModuleNamespace -- Existing Module
|
||||
module Errors
|
||||
class DisabledError < StandardError
|
||||
def initialize(msg: nil)
|
||||
super(msg || default_message)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def default_message
|
||||
"ClickHouse analytics database is not enabled"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -23349,12 +23349,24 @@ msgstr ""
|
|||
msgid "DuoAgentsPlatform|Agents"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Convert Jenkins to CI"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Enter the path to your Jenkinsfile."
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Failed to fetch workflows"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Fetching logs..."
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|New"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|New Agent Flow"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|New Agent runs will appear here."
|
||||
msgstr ""
|
||||
|
||||
|
|
@ -23367,15 +23379,27 @@ msgstr ""
|
|||
msgid "DuoAgentsPlatform|Output"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Path must be a Jenkinsfile with the exact matching case."
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Prompt"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Prompt is unavailable"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Run an Agent Flow"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Select Agent Flow"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Something went wrong while fetching Agent Flows"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Start Agent Flow"
|
||||
msgstr ""
|
||||
|
||||
msgid "DuoAgentsPlatform|Status"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@
|
|||
"devDependencies": {
|
||||
"@eslint/eslintrc": "^3.2.0",
|
||||
"@eslint/js": "^9.15.0",
|
||||
"@gitlab/eslint-plugin": "21.0.0",
|
||||
"@gitlab/eslint-plugin": "21.1.0",
|
||||
"@gitlab/noop": "^1.0.1",
|
||||
"@gitlab/stylelint-config": "6.2.2",
|
||||
"@graphql-eslint/eslint-plugin": "4.4.0",
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
RSpec.describe ClickHouse::Errors::DisabledError, feature_category: :database do
|
||||
describe '#initialize' do
|
||||
it 'initializes with a default message' do
|
||||
error = described_class.new
|
||||
expect(error.message).to eq('ClickHouse analytics database is not enabled')
|
||||
end
|
||||
|
||||
it 'initializes with a custom message' do
|
||||
custom_message = 'Custom error message'
|
||||
error = described_class.new(msg: custom_message)
|
||||
expect(error.message).to eq(custom_message)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'inheritance' do
|
||||
it 'inherits from StandardError' do
|
||||
expect(described_class.superclass).to eq(StandardError)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'error behavior' do
|
||||
it 'can be raised and rescued' do
|
||||
expect do
|
||||
raise described_class
|
||||
rescue described_class => e
|
||||
expect(e.message).to eq('ClickHouse analytics database is not enabled')
|
||||
raise e
|
||||
end.to raise_error(described_class)
|
||||
end
|
||||
|
||||
it 'can be raised with a custom message' do
|
||||
custom_message = 'ClickHouse is not available'
|
||||
expect do
|
||||
raise described_class.new(msg: custom_message)
|
||||
end.to raise_error(described_class, custom_message)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -1407,10 +1407,10 @@
|
|||
vue-resizable "1.3.4"
|
||||
vue-runtime-helpers "^1.1.2"
|
||||
|
||||
"@gitlab/eslint-plugin@21.0.0":
|
||||
version "21.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@gitlab/eslint-plugin/-/eslint-plugin-21.0.0.tgz#293913ba721534f7074dd88f515cfa6e7f8b6682"
|
||||
integrity sha512-ag2q6NltsDBaTwIjpZgUvIYtp/WcHaJoq/wVGFJPywCT56N3qFgvF3tHNoHOOxfq/IliNipUTGpEXXD7Kwwslw==
|
||||
"@gitlab/eslint-plugin@21.1.0":
|
||||
version "21.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@gitlab/eslint-plugin/-/eslint-plugin-21.1.0.tgz#4cbf2db8b424a93a68dd32be7116e8869e7c55d1"
|
||||
integrity sha512-Va3LlxesMFSnENH6jkxUR6J4TXAdMsn+BmF1UWsr7mvUjkgZSkd4nUlkYxVYYuqRDcpZVcpFHKHa+TsTF4LCQQ==
|
||||
dependencies:
|
||||
"@typescript-eslint/eslint-plugin" "^7.14.1"
|
||||
confusing-browser-globals "^1.0.11"
|
||||
|
|
|
|||
Loading…
Reference in New Issue