-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into datanode-list-page
- Loading branch information
Showing
119 changed files
with
1,986 additions
and
1,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Fix linter hints | |
|
||
on: | ||
schedule: | ||
- cron: '0 */8 * * *' | ||
- cron: '0 */8 * * MON-FRI' | ||
|
||
workflow_dispatch: | ||
|
||
|
@@ -46,7 +46,8 @@ jobs: | |
run: | | ||
/bin/sh ../.github/scripts/web-code-quality.sh | curl -X POST -H 'Content-Type: application/json' -d @- ${{ secrets.DEV_METRICS_URL }} | ||
- name: Create/Update Pull Request | ||
uses: Graylog2/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad | ||
id: pr-create | ||
uses: Graylog2/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 | ||
with: | ||
title: Fixing linter hints automatically | ||
body: This PR was created by a job that is running periodically to find and fix linter hints. | ||
|
@@ -55,3 +56,26 @@ jobs: | |
committer: Dr. Lint-a-lot <[email protected]> | ||
commit-message: Running lint --fix | ||
delete-branch: true | ||
|
||
- name: Get headRef and SHA of PR | ||
id: pr-infos | ||
if: ${{ steps.pr-create.outputs.pull-request-number && steps.pr-create.outputs.pull-request-operation != 'closed' }} | ||
run: | | ||
HEADREF=$(gh pr view ${{ steps.pr-create.outputs.pull-request-number }} --json headRefName --template '{{.headRefName}}') | ||
echo "sha=$(git rev-parse origin/$HEADREF)" >> $GITHUB_OUTPUT | ||
echo "headref=$HEADREF" >> $GITHUB_OUTPUT | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
- name: Request dispatched PR build | ||
if: ${{ steps.pr-create.outputs.pull-request-number && steps.pr-create.outputs.pull-request-operation != 'closed' }} | ||
run: > | ||
gh workflow run -R Graylog2/graylog-project-internal pr-build.yml --ref master | ||
-f caller_repo=${{ github.repository }} | ||
-f caller_pr_nr=${{ steps.pr-create.outputs.pull-request-number }} | ||
-f caller_base_branch=master | ||
-f caller_head_branch=${{ steps.pr-infos.outputs.headref }} | ||
-f head_sha=${{ steps.pr-infos.outputs.sha }} | ||
-f initial_actor="Dr. Lint-a-lot" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT_GRAYLOG_PROJECT_INTERNAL_WORKFLOW_RW }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Update browserslist DB. | |
|
||
on: | ||
schedule: | ||
- cron: '0 0 1/14 * *' | ||
- cron: '0 0 1/14 * MON-FRI' | ||
|
||
workflow_dispatch: | ||
|
||
|
@@ -21,7 +21,8 @@ jobs: | |
continue-on-error: true | ||
run: npx browserslist@latest --update-db | ||
- name: Create/Update Pull Request | ||
uses: Graylog2/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad | ||
id: pr-create | ||
uses: Graylog2/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 | ||
with: | ||
title: Updating browserslist DB. | ||
body: This PR was created by a job that is running periodically to update the browserslist db automatically. See [here](https://github.com/browserslist/browserslist#browsers-data-updating) for details. | ||
|
@@ -30,3 +31,26 @@ jobs: | |
committer: Dr. Lint-a-lot <[email protected]> | ||
commit-message: Updating browserslist DB. | ||
delete-branch: true | ||
|
||
- name: Get headRef and SHA of PR | ||
id: pr-infos | ||
if: ${{ steps.pr-create.outputs.pull-request-number && steps.pr-create.outputs.pull-request-operation != 'closed' }} | ||
run: | | ||
HEADREF=$(gh pr view ${{ steps.pr-create.outputs.pull-request-number }} --json headRefName --template '{{.headRefName}}') | ||
echo "sha=$(git rev-parse origin/$HEADREF)" >> $GITHUB_OUTPUT | ||
echo "headref=$HEADREF" >> $GITHUB_OUTPUT | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
- name: Request dispatched PR build | ||
if: ${{ steps.pr-create.outputs.pull-request-number && steps.pr-create.outputs.pull-request-operation != 'closed' }} | ||
run: > | ||
gh workflow run -R Graylog2/graylog-project-internal pr-build.yml --ref master | ||
-f caller_repo=${{ github.repository }} | ||
-f caller_pr_nr=${{ steps.pr-create.outputs.pull-request-number }} | ||
-f caller_base_branch=master | ||
-f caller_head_branch=${{ steps.pr-infos.outputs.headref }} | ||
-f head_sha=${{ steps.pr-infos.outputs.sha }} | ||
-f initial_actor="Dr. Lint-a-lot" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT_GRAYLOG_PROJECT_INTERNAL_WORKFLOW_RW }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Updating yarn lockfile | |
|
||
on: | ||
schedule: | ||
- cron: '0 */12 * * *' | ||
- cron: '0 */12 * * MON-FRI' | ||
|
||
workflow_dispatch: | ||
|
||
|
@@ -18,7 +18,8 @@ jobs: | |
- name: Install dependencies | ||
run: yarn install | ||
- name: Create/Update Pull Request | ||
uses: Graylog2/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad | ||
id: pr-create | ||
uses: Graylog2/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 | ||
with: | ||
title: Updating yarn lockfile | ||
body: This PR was created by a job that is running periodically to update the yarn lockfile after transitive dependencies have been updated. | ||
|
@@ -27,3 +28,26 @@ jobs: | |
committer: Gary Bot <[email protected]> | ||
commit-message: Updating yarn lockfile | ||
delete-branch: true | ||
|
||
- name: Get headRef and SHA of PR | ||
id: pr-infos | ||
if: ${{ steps.pr-create.outputs.pull-request-number && steps.pr-create.outputs.pull-request-operation != 'closed' }} | ||
run: | | ||
HEADREF=$(gh pr view ${{ steps.pr-create.outputs.pull-request-number }} --json headRefName --template '{{.headRefName}}') | ||
echo "sha=$(git rev-parse origin/$HEADREF)" >> $GITHUB_OUTPUT | ||
echo "headref=$HEADREF" >> $GITHUB_OUTPUT | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
- name: Request dispatched PR build | ||
if: ${{ steps.pr-create.outputs.pull-request-number && steps.pr-create.outputs.pull-request-operation != 'closed' }} | ||
run: > | ||
gh workflow run -R Graylog2/graylog-project-internal pr-build.yml --ref master | ||
-f caller_repo=${{ github.repository }} | ||
-f caller_pr_nr=${{ steps.pr-create.outputs.pull-request-number }} | ||
-f caller_base_branch=master | ||
-f caller_head_branch=${{ steps.pr-infos.outputs.headref }} | ||
-f head_sha=${{ steps.pr-infos.outputs.sha }} | ||
-f initial_actor="Dr. Lint-a-lot" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT_GRAYLOG_PROJECT_INTERNAL_WORKFLOW_RW }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type = "c" | ||
message = "Ensure password secret meets the minimum length requirement if using/for the DataNode." | ||
|
||
issues = ["17523"] | ||
pulls = ["17719"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type = "c" | ||
message = "Updated the select_jsonpath pipeline function to accept JSON strings as the `json` parameter in addition to parsed JsonNode objects." | ||
|
||
issues = ["17647"] | ||
pulls = ["17683"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type = "added" | ||
message = "Add Create new dashboard widget action" | ||
|
||
issues = ["7629"] | ||
pulls = ["17582"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type = "c" | ||
message = "Changed logging in Message class. When invalid message key is found and ignored, that fact is logged with INFO level. Rate limited log is used in order to not overwhelm logs with this kind of log messages." | ||
|
||
issues = [""] | ||
pulls = ["17601"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type = "f" | ||
message = "Fix distribution of table column width for print version of data table and message list widget" | ||
|
||
issues = ["Graylog2/graylog-plugin-enterprise#6158"] | ||
pulls = ["17642"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type = "f" | ||
message = "Remove entity from bulk select state, when removing single entity in tables with bulk actions." | ||
|
||
pulls = ["17656"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
type = "f" | ||
message = "Fixing text alignment of highlighted numbers in data tables." | ||
|
||
pulls = ["17678"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type = "c" | ||
message = "Unify the way numeric fields are displayed in the message table widget, compared with the data table widget." | ||
|
||
pulls = ["17693"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...og2-server/src/main/java/org/graylog2/indexer/indexset/profile/IndexFieldTypeProfile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright (C) 2020 Graylog, Inc. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the Server Side Public License, version 1, | ||
* as published by MongoDB, Inc. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* Server Side Public License for more details. | ||
* | ||
* You should have received a copy of the Server Side Public License | ||
* along with this program. If not, see | ||
* <http://www.mongodb.com/licensing/server-side-public-license>. | ||
*/ | ||
package org.graylog2.indexer.indexset.profile; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import org.graylog2.indexer.indexset.CustomFieldMappings; | ||
import org.mongojack.Id; | ||
import org.mongojack.ObjectId; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
public record IndexFieldTypeProfile(@JsonProperty(ID_FIELD_NAME) @Nullable @Id @ObjectId String id, | ||
@JsonProperty(NAME_FIELD_NAME) String name, | ||
@JsonProperty(DESCRIPTION_FIELD_NAME) String description, | ||
@JsonProperty(CUSTOM_MAPPINGS_FIELD_NAME) CustomFieldMappings customFieldMappings) { | ||
|
||
public static final String ID_FIELD_NAME = "id"; | ||
public static final String NAME_FIELD_NAME = "name"; | ||
public static final String DESCRIPTION_FIELD_NAME = "description"; | ||
public static final String CUSTOM_MAPPINGS_FIELD_NAME = "custom_field_mappings"; | ||
|
||
public IndexFieldTypeProfile(final IndexFieldTypeProfileData data) { | ||
this(null, data.name(), data.description(), data.customFieldMappings()); | ||
} | ||
} |
Oops, something went wrong.