diff --git a/.github/workflows/add-untriaged.yml b/.github/workflows/add-untriaged.yml index 95b110e1011..2c5daad407b 100644 --- a/.github/workflows/add-untriaged.yml +++ b/.github/workflows/add-untriaged.yml @@ -17,30 +17,58 @@ jobs: const repoOwner = context.repo.owner; const repoName = context.repo.repo; let isCollaborator = false; + + console.log(`Checking collaborator status for ${issueAuthor} in ${repoOwner}/${repoName}`); + try { - // Attempt to fetch user's permission level - await github.rest.repos.getCollaboratorPermissionLevel({ + const { data: permissionLevel } = await github.rest.repos.getCollaboratorPermissionLevel({ owner: repoOwner, repo: repoName, username: issueAuthor, }); - - // If no error is thrown, the user is a collaborator - isCollaborator = true; + + console.log(`Permission level for ${issueAuthor}: ${permissionLevel.permission}`); + + if (permissionLevel.permission !== 'none') { + isCollaborator = true; + console.log(`${issueAuthor} is a collaborator with ${permissionLevel.permission} permission.`); + } else { + console.log(`${issueAuthor} has 'none' permission, considered as non-collaborator.`); + } } catch (error) { - // Error thrown indicates the user is not a collaborator, - // or does not have explicit permission set. - console.log(`${issueAuthor} is not a collaborator.`); + if (error.status === 404) { + console.log(`${issueAuthor} is not a collaborator (404 error).`); + } else { + console.error(`Error checking collaborator status: ${error.message}`); + core.setFailed(`Error checking collaborator status: ${error.message}`); + return; + } } + core.setOutput('is_collaborator', isCollaborator.toString()); + console.log(`Set output is_collaborator to: ${isCollaborator.toString()}`); + + - name: Debug outputs + run: | + echo "Is collaborator: ${{ steps.check-collaborator.outputs.is_collaborator }}" + echo "Issue author: ${{ github.event.issue.user.login }}" + echo "Repo: ${{ github.repository }}" + - name: Apply label if not a collaborator if: steps.check-collaborator.outputs.is_collaborator == 'false' uses: actions/github-script@v6 with: script: | - github.rest.issues.addLabels({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['untriaged'] - }) + console.log('Attempting to add "untriaged" label'); + try { + await github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['untriaged'] + }); + console.log('Successfully added "untriaged" label'); + } catch (error) { + console.error(`Error adding label: ${error.message}`); + core.setFailed(`Error adding label: ${error.message}`); + } diff --git a/.github/workflows/build_and_test_workflow.yml b/.github/workflows/build_and_test_workflow.yml index 6eff022974c..728722e952d 100644 --- a/.github/workflows/build_and_test_workflow.yml +++ b/.github/workflows/build_and_test_workflow.yml @@ -11,6 +11,7 @@ on: - '**/*.md' - 'docs/**' - '.lycheeignore' + - 'CODEOWNERS' - 'changelogs/fragments/**' pull_request: branches: ['**'] @@ -18,6 +19,7 @@ on: - '**/*.md' - 'docs/**' - '.lycheeignore' + - 'CODEOWNERS' - 'changelogs/fragments/**' env: diff --git a/changelogs/fragments/7133.yml b/changelogs/fragments/7133.yml new file mode 100644 index 00000000000..e1755da0683 --- /dev/null +++ b/changelogs/fragments/7133.yml @@ -0,0 +1,2 @@ +feat: +- [Workspace] Refactor workspace form UI ([#7133](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7133)) \ No newline at end of file diff --git a/changelogs/fragments/7166.yml b/changelogs/fragments/7166.yml new file mode 100644 index 00000000000..937c8545c0b --- /dev/null +++ b/changelogs/fragments/7166.yml @@ -0,0 +1,2 @@ +feat: +- 1. Add current nav group into chrome service 2. Prepend current nav group into breadcrumb ([#7166](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7166)) \ No newline at end of file diff --git a/changelogs/fragments/7192.yml b/changelogs/fragments/7192.yml new file mode 100644 index 00000000000..4076bf2d162 --- /dev/null +++ b/changelogs/fragments/7192.yml @@ -0,0 +1,2 @@ +refactor: +- [Look&Feel] Refactor to use semantic headers for page, modal & flyout ([#7192](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7192)) \ No newline at end of file diff --git a/changelogs/fragments/7195.yml b/changelogs/fragments/7195.yml new file mode 100644 index 00000000000..4aa060e47dc --- /dev/null +++ b/changelogs/fragments/7195.yml @@ -0,0 +1,2 @@ +refactor: +- [Look&Feel] Consistency of Plus Icons ([#7195](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7195)) \ No newline at end of file diff --git a/changelogs/fragments/7197.yml b/changelogs/fragments/7197.yml new file mode 100644 index 00000000000..1810544b0b5 --- /dev/null +++ b/changelogs/fragments/7197.yml @@ -0,0 +1,2 @@ +chore: +- Skip running tests for updates in CODEOWNERS ([#7197](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7197)) \ No newline at end of file diff --git a/changelogs/fragments/7200.yml b/changelogs/fragments/7200.yml new file mode 100644 index 00000000000..e4602a49b52 --- /dev/null +++ b/changelogs/fragments/7200.yml @@ -0,0 +1,2 @@ +refactor: +- [Look&Feel] Update Popover Padding Size ([#7200](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7200)) \ No newline at end of file diff --git a/changelogs/fragments/7211.yml b/changelogs/fragments/7211.yml new file mode 100644 index 00000000000..504ddde9a66 --- /dev/null +++ b/changelogs/fragments/7211.yml @@ -0,0 +1,2 @@ +feat: +- Address styling of non-primary buttons by making secondary/empty ([#7211](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7211)) \ No newline at end of file diff --git a/changelogs/fragments/7235.yml b/changelogs/fragments/7235.yml new file mode 100644 index 00000000000..e1ef6b249df --- /dev/null +++ b/changelogs/fragments/7235.yml @@ -0,0 +1,2 @@ +feat: +- Add all use case ([#7235](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7235)) \ No newline at end of file diff --git a/src/core/public/application/ui/app_not_found_screen.tsx b/src/core/public/application/ui/app_not_found_screen.tsx index ac2b2f80b9c..9575846095c 100644 --- a/src/core/public/application/ui/app_not_found_screen.tsx +++ b/src/core/public/application/ui/app_not_found_screen.tsx @@ -28,7 +28,7 @@ * under the License. */ -import { EuiEmptyPrompt, EuiPage, EuiPageBody, EuiPageContent } from '@elastic/eui'; +import { EuiEmptyPrompt, EuiPage, EuiPageBody, EuiPageContent, EuiText } from '@elastic/eui'; import React from 'react'; import { FormattedMessage } from '@osd/i18n/react'; @@ -48,12 +48,14 @@ export const AppNotFound = () => ( } body={ -
-
+
{name}
-
+
-
+
- Are you sure you want to overwrite the existing queries? This action cannot be undone. All existing queries will be deleted and replaced with the imported queries. If you are unsure, please choose the "Merge with existing queries" option instead -
++ Are you sure you want to overwrite the existing queries? This action cannot be undone. All existing queries will be deleted and replaced with the imported queries. If you are unsure, please choose the "Merge with existing queries" option instead +
+{loadingMessage}
- {i18n.translate('console.overwriteModal.body.conflict', { - defaultMessage: - 'Are you sure you want to overwrite the existing queries? This action cannot be undone. All existing queries will be deleted and replaced with the imported queries. If you are unsure, please choose the "{option}" option instead', - values: { option: 'Merge with existing queries' }, - })} -
++ {i18n.translate('console.overwriteModal.body.conflict', { + defaultMessage: + 'Are you sure you want to overwrite the existing queries? This action cannot be undone. All existing queries will be deleted and replaced with the imported queries. If you are unsure, please choose the "{option}" option instead', + values: { option: 'Merge with existing queries' }, + })} +
+
+
+
+
+
+
+
-
+
{description1}
{description1 && }
@@ -122,11 +122,11 @@ export function DashboardEmptyScreen({
className="dshStartScreen__pageContent"
>
{mainText} {warningText} {warningText}
-
+
-
+
-
+ {formattedValue} {formattedValue}
-
+ Error rendering portal content Error rendering portal content
- {i18n.translate('opensearch-dashboards-react.mountPointPortal.errorMessage', {
- defaultMessage: 'Error rendering portal content',
- })}
-
+ {i18n.translate('opensearch-dashboards-react.mountPointPortal.errorMessage', {
+ defaultMessage: 'Error rendering portal content',
+ })}
+
-
+
-
+
-
+ {loadingMessage} {bodyText} {bodyText}
-
+
-
+
- {i18n.translate('visBuilder.workSpace.empty.description', {
- defaultMessage:
- 'Drag a field to the configuration panel to generate a visualization.',
- })}
-
+ {i18n.translate('visBuilder.workSpace.empty.description', {
+ defaultMessage:
+ 'Drag a field to the configuration panel to generate a visualization.',
+ })}
+
Start creating your visualization by selecting a type for that visualization.
@@ -1016,9 +1016,11 @@ exports[`NewVisModal filter for visualization types should render as expected 1`
]
}
>
-
Start creating your visualization by selecting a type for that visualization.
@@ -2066,9 +2068,11 @@ exports[`NewVisModal should render as expected 1`] = `
]
}
>
-
{highlightMsg}
diff --git a/src/plugins/visualize/public/application/utils/get_table_columns.tsx b/src/plugins/visualize/public/application/utils/get_table_columns.tsx
index 02917cf2b90..c0e1d394e49 100644
--- a/src/plugins/visualize/public/application/utils/get_table_columns.tsx
+++ b/src/plugins/visualize/public/application/utils/get_table_columns.tsx
@@ -30,7 +30,15 @@
import React from 'react';
import { History } from 'history';
-import { EuiBetaBadge, EuiButton, EuiEmptyPrompt, EuiIcon, EuiLink, EuiBadge } from '@elastic/eui';
+import {
+ EuiBetaBadge,
+ EuiButton,
+ EuiEmptyPrompt,
+ EuiIcon,
+ EuiLink,
+ EuiBadge,
+ EuiText,
+} from '@elastic/eui';
import { i18n } from '@osd/i18n';
import { FormattedMessage } from '@osd/i18n/react';
@@ -167,26 +175,30 @@ export const getNoItemsMessage = (createItem: () => void) => (
-
+
+
+
+
+
+
+
+ {i18n.translate('data.search.searchBar.savedQueryFormTitle', {
+ defaultMessage: 'Save query',
+ })}
+
+
-
-
-
- Inspector
-
-
+ Inspector
+
+ {title}
- {title}
+
-
Page Title
- {title}
- {this.props.tableListTitle}
-
+
+
+
+
+
)}
-
-
-
+
+ {workspaceDetailsTitle}
@@ -67,7 +80,7 @@ export const WorkspaceForm = (props: WorkspaceFormProps) => {
'Valid characters are a-z, A-Z, 0-9, (), [], _ (underscore), - (hyphen) and (space).',
})}
isInvalid={!!formErrors.name}
- error={formErrors.name}
+ error={formErrors.name?.message}
>
{i18n.translate('workspace.form.selectDataSource.title', {
- defaultMessage: 'Select Data Sources',
+ defaultMessage: 'Associate data source',
})}
+ {errors.name && (
+
+