Skip to content

Commit

Permalink
update page to preferences -> search
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-madlani committed Sep 25, 2024
1 parent 12c727a commit d059da5
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ export const SETTINGS_OPTIONS_PATH = {
],

[GlobalSettingOptions.SEARCH_RBAC]: [
GlobalSettingsMenuCategory.ACCESS,
`${GlobalSettingsMenuCategory.ACCESS}.${GlobalSettingOptions.SEARCH_RBAC}`,
GlobalSettingsMenuCategory.PREFERENCES,
`${GlobalSettingsMenuCategory.PREFERENCES}.${GlobalSettingOptions.SEARCH_RBAC}`,
],
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { expect, test as setup } from '@playwright/test';
import { test as setup } from '@playwright/test';
import { JWT_EXPIRY_TIME_MAP } from '../constant/login';
import { GlobalSettingOptions } from '../constant/settings';
import { AdminClass } from '../support/user/AdminClass';
import { getApiContext } from '../utils/common';
import { updateJWTTokenExpiryTime } from '../utils/login';
import { settingClick } from '../utils/sidebar';
import { removeOrganizationPolicyAndRole } from '../utils/team';
const adminFile = 'playwright/.auth/admin.json';

Expand All @@ -35,12 +33,6 @@ setup('authenticate as admin', async ({ page }) => {
await admin.login(page);
await page.waitForURL('**/my-data');

await settingClick(page, GlobalSettingOptions.SEARCH_RBAC);

await page.getByRole('switch').click();

await expect(page.getByText('Search RBAC updated')).toBeVisible();

// End of authentication steps.
await page.context().storageState({ path: adminFile });
});
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ const SettingsRouter = () => {
exact
component={SearchRBACSettingsPage}
path={getSettingPath(
GlobalSettingsMenuCategory.ACCESS,
GlobalSettingsMenuCategory.PREFERENCES,
GlobalSettingOptions.SEARCH_RBAC
)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ export const PAGE_HEADERS = {
subHeader: i18n.t('message.page-sub-header-for-login-configuration'),
},
SEARCH_RBAC: {
header: i18n.t('label.search-rbac'),
subHeader: i18n.t('message.page-sub-header-for-search-rbac'),
header: i18n.t('label.search'),
subHeader: i18n.t('message.page-sub-header-for-search-setting'),
},
OM_HEALTH: {
header: i18n.t('label.health-check'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
"embed-image": "Embed image",
"embed-link": "Embed link",
"enable": "Aktivieren",
"enable-access-control": "Enable Access Control",
"enable-debug-log": "Debug-Protokoll aktivieren",
"enable-lowercase": "enable",
"enable-partition": "Partition aktivieren",
"enable-roles-polices-in-search": "Enable Roles & Policies in Search",
"enable-smtp-server": "SMTP-Server aktivieren",
"enabled": "Aktiviert",
"end-date": "Enddatum",
Expand Down Expand Up @@ -1714,7 +1714,7 @@
"page-sub-header-for-profiler-configuration": "Customize globally the behavior of the profiler by setting the metrics to compute based on columns data types",
"page-sub-header-for-roles": "Weise Benutzern oder Teams umfassende rollenbasierte Zugriffsberechtigungen zu.",
"page-sub-header-for-search": "Ingestion von Metadaten aus den beliebtesten Suchdiensten.",
"page-sub-header-for-search-rbac": "Control over applying RBAC (Role Based Access Control) on search results.",
"page-sub-header-for-search-setting": "Ability to configure the search settings to suit your needs.",
"page-sub-header-for-setting": "Ability to configure the OpenMetadata application to suit your needs.",
"page-sub-header-for-storages": "Ingestion von Metadaten aus den am häufigsten verwendeten Speicherdiensten.",
"page-sub-header-for-table-profile": "Überwache und verstehe die Struktur deiner Tabellen mit dem Profiler.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
"embed-image": "Embed image",
"embed-link": "Embed link",
"enable": "Enable",
"enable-access-control": "Enable Access Control",
"enable-debug-log": "Enable Debug Log",
"enable-lowercase": "enable",
"enable-partition": "Enable Partition",
"enable-roles-polices-in-search": "Enable Roles & Policies in Search",
"enable-smtp-server": "Enable SMTP Server",
"enabled": "Enabled",
"end-date": "End Date",
Expand Down Expand Up @@ -1714,7 +1714,7 @@
"page-sub-header-for-profiler-configuration": "Customize globally the behavior of the profiler by setting the metrics to compute based on columns data types",
"page-sub-header-for-roles": "Assign comprehensive role based access to Users or Teams.",
"page-sub-header-for-search": "Ingest metadata from the most popular search services.",
"page-sub-header-for-search-rbac": "Control over applying RBAC (Role Based Access Control) on search results.",
"page-sub-header-for-search-setting": "Ability to configure the search settings to suit your needs.",
"page-sub-header-for-setting": "Ability to configure the OpenMetadata application to suit your needs.",
"page-sub-header-for-storages": "Ingest metadata from the most popular storage services.",
"page-sub-header-for-table-profile": "Monitor and understand your tables structure with the profiler.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
"embed-image": "Insertar imagen",
"embed-link": "Insertar Link",
"enable": "Habilitar",
"enable-access-control": "Enable Access Control",
"enable-debug-log": "Activar logs con debug",
"enable-lowercase": "habilitar",
"enable-partition": "Habilitar partición",
"enable-roles-polices-in-search": "Enable Roles & Policies in Search",
"enable-smtp-server": "Habilitar Server SMTP",
"enabled": "Habilitado",
"end-date": "Fecha de fin",
Expand Down Expand Up @@ -1714,7 +1714,7 @@
"page-sub-header-for-profiler-configuration": "Customize globally the behavior of the profiler by setting the metrics to compute based on columns data types",
"page-sub-header-for-roles": "Asigna un acceso basado en roles integral a Usuarios o Equipos.",
"page-sub-header-for-search": "Ingresa metadatos desde los servicios de búsqueda más populares.",
"page-sub-header-for-search-rbac": "Control over applying RBAC (Role Based Access Control) on search results.",
"page-sub-header-for-search-setting": "Ability to configure the search settings to suit your needs.",
"page-sub-header-for-setting": "Capacidad para configurar la aplicación OpenMetadata según tus necesidades.",
"page-sub-header-for-storages": "Ingresa metadatos desde los servicios de almacenamiento más populares.",
"page-sub-header-for-table-profile": "Monitorea y comprende la estructura de tus tablas con el perfilador.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
"embed-image": "Incorporer image",
"embed-link": "Incorporer lien",
"enable": "Activer",
"enable-access-control": "Enable Access Control",
"enable-debug-log": "Activer le Journal de Débogage",
"enable-lowercase": "activer",
"enable-partition": "Activer la Partition",
"enable-roles-polices-in-search": "Enable Roles & Policies in Search",
"enable-smtp-server": "Activer le Serveur SMTP",
"enabled": "Activé",
"end-date": "Date de Fin",
Expand Down Expand Up @@ -1714,7 +1714,7 @@
"page-sub-header-for-profiler-configuration": "Personnalisez le comportement global du profiler en établissant les métriques à calculer à partir des types de données des colonnes",
"page-sub-header-for-roles": "Attribuez des autorisations basées sur les rôles aux utilisateurs ou aux équipes.",
"page-sub-header-for-search": "Ingestion de métadonnées à partir des services de recherche les plus populaires.",
"page-sub-header-for-search-rbac": "Control over applying RBAC (Role Based Access Control) on search results.",
"page-sub-header-for-search-setting": "Ability to configure the search settings to suit your needs.",
"page-sub-header-for-setting": "Configurez l'application OpenMetadata pour répondre à vos besoins.",
"page-sub-header-for-storages": "Ingestion de métadonnées à partir des services de stockage les plus populaires.",
"page-sub-header-for-table-profile": "Surveillez et comprenez la structure de vos tables avec le profilage.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
"embed-image": "הטמע תמונה",
"embed-link": "הטמע קישור",
"enable": "הפעל",
"enable-access-control": "Enable Access Control",
"enable-debug-log": "הפעל יומן דיבוג",
"enable-lowercase": "הפעל",
"enable-partition": "הפעל מחיצה",
"enable-roles-polices-in-search": "Enable Roles & Policies in Search",
"enable-smtp-server": "הפעל שרת SMTP",
"enabled": "מופעל",
"end-date": "תאריך סיום",
Expand Down Expand Up @@ -1714,7 +1714,7 @@
"page-sub-header-for-profiler-configuration": "Customize globally the behavior of the profiler by setting the metrics to compute based on columns data types",
"page-sub-header-for-roles": "הקצאת גישה מבוססת תפקיד למשתמשים או קבוצות.",
"page-sub-header-for-search": "שלב מטה-דאטה משירותי החיפוש הפופולריים ביותר.",
"page-sub-header-for-search-rbac": "Control over applying RBAC (Role Based Access Control) on search results.",
"page-sub-header-for-search-setting": "Ability to configure the search settings to suit your needs.",
"page-sub-header-for-setting": "Ability to configure the OpenMetadata application to suit your needs.",
"page-sub-header-for-storages": "שלב מטה-דאטה משירותי האחסון הפופולריים ביותר.",
"page-sub-header-for-table-profile": "נטרו, נתחו והבינו את מבנה הטבלאות שלכם באמצועות הפרופיילר.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
"embed-image": "Embed image",
"embed-link": "Embed link",
"enable": "Enable",
"enable-access-control": "Enable Access Control",
"enable-debug-log": "デバッグログの表示を有効化",
"enable-lowercase": "enable",
"enable-partition": "パーティションを有効化",
"enable-roles-polices-in-search": "Enable Roles & Policies in Search",
"enable-smtp-server": "Enable SMTP Server",
"enabled": "Enabled",
"end-date": "終了日時",
Expand Down Expand Up @@ -1714,7 +1714,7 @@
"page-sub-header-for-profiler-configuration": "Customize globally the behavior of the profiler by setting the metrics to compute based on columns data types",
"page-sub-header-for-roles": "Assign comprehensive role based access to Users or Teams.",
"page-sub-header-for-search": "Ingest metadata from the most popular search services.",
"page-sub-header-for-search-rbac": "Control over applying RBAC (Role Based Access Control) on search results.",
"page-sub-header-for-search-setting": "Ability to configure the search settings to suit your needs.",
"page-sub-header-for-setting": "Ability to configure the OpenMetadata application to suit your needs.",
"page-sub-header-for-storages": "Ingest metadata from the most popular storage services.",
"page-sub-header-for-table-profile": "Monitor and understand your tables structure with the profiler.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
"embed-image": "Afbeelding insluiten",
"embed-link": "Koppeling insluiten",
"enable": "Inschakelen",
"enable-access-control": "Enable Access Control",
"enable-debug-log": "Debuglog inschakelen",
"enable-lowercase": "inschakelen",
"enable-partition": "Partitie inschakelen",
"enable-roles-polices-in-search": "Enable Roles & Policies in Search",
"enable-smtp-server": "SMTP-server inschakelen",
"enabled": "Ingeschakeld",
"end-date": "Einddatum",
Expand Down Expand Up @@ -1714,7 +1714,7 @@
"page-sub-header-for-profiler-configuration": "Customize globally the behavior of the profiler by setting the metrics to compute based on columns data types",
"page-sub-header-for-roles": "Wijs uitgebreide rolgebaseerde toegang toe aan gebruikers of teams.",
"page-sub-header-for-search": "Ingest metadata van de meestgebruikte zoekservices.",
"page-sub-header-for-search-rbac": "Control over applying RBAC (Role Based Access Control) on search results.",
"page-sub-header-for-search-setting": "Ability to configure the search settings to suit your needs.",
"page-sub-header-for-setting": "Mogelijkheid om de OpenMetadata-toepassing naar eigen behoefte te configureren.",
"page-sub-header-for-storages": "Ingest metadata van de meestgebruikte opslagservices.",
"page-sub-header-for-table-profile": "Volg en begrijp de structuur van je tabellen met de profiler.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
"embed-image": "قرار دادن تصویر",
"embed-link": "قرار دادن لینک",
"enable": "فعال کردن",
"enable-access-control": "Enable Access Control",
"enable-debug-log": "فعال کردن گزارش اشکال‌زدایی",
"enable-lowercase": "فعال کردن",
"enable-partition": "فعال کردن پارتیشن",
"enable-roles-polices-in-search": "Enable Roles & Policies in Search",
"enable-smtp-server": "فعال کردن سرور SMTP",
"enabled": "فعال شد",
"end-date": "تاریخ پایان",
Expand Down Expand Up @@ -1714,7 +1714,7 @@
"page-sub-header-for-profiler-configuration": "تنظیم رفتار پروفایلر در سطح جهانی با تعیین معیارها بر اساس نوع داده‌های ستون‌ها.",
"page-sub-header-for-roles": "تخصیص دسترسی جامع مبتنی بر نقش به کاربران یا تیم‌ها.",
"page-sub-header-for-search": "ورود متادیتا از پرکاربردترین سرویس‌های جستجو.",
"page-sub-header-for-search-rbac": "Control over applying RBAC (Role Based Access Control) on search results.",
"page-sub-header-for-search-setting": "Ability to configure the search settings to suit your needs.",
"page-sub-header-for-setting": "قابلیت پیکربندی برنامه OpenMetadata به‌طور دلخواه.",
"page-sub-header-for-storages": "ورود متادیتا از پرکاربردترین سرویس‌های ذخیره‌سازی.",
"page-sub-header-for-table-profile": "نظارت و درک ساختار جداول خود با استفاده از پروفایلر.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
"embed-image": "Incorporar imagem",
"embed-link": "Incorporar link",
"enable": "Habilitar",
"enable-access-control": "Enable Access Control",
"enable-debug-log": "Habilitar Log de Depuração",
"enable-lowercase": "habilitar",
"enable-partition": "Habilitar Partição",
"enable-roles-polices-in-search": "Enable Roles & Policies in Search",
"enable-smtp-server": "Habilitar Servidor SMTP",
"enabled": "Habilitado",
"end-date": "Data de Término",
Expand Down Expand Up @@ -1714,7 +1714,7 @@
"page-sub-header-for-profiler-configuration": "Customize globally the behavior of the profiler by setting the metrics to compute based on columns data types",
"page-sub-header-for-roles": "Atribua acesso baseado em funções abrangentes a usuários ou equipes.",
"page-sub-header-for-search": "Ingestão de metadados dos serviços de pesquisa mais populares.",
"page-sub-header-for-search-rbac": "Control over applying RBAC (Role Based Access Control) on search results.",
"page-sub-header-for-search-setting": "Ability to configure the search settings to suit your needs.",
"page-sub-header-for-setting": "Habilidade para configurar a aplicação OpenMetadata de acordo com suas necessidades.",
"page-sub-header-for-storages": "Ingestão de metadados dos serviços de armazenamento mais populares.",
"page-sub-header-for-table-profile": "Monitore e compreenda a estrutura de suas tabelas com o examinador.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
"embed-image": "Embed image",
"embed-link": "Embed link",
"enable": "Разрешить",
"enable-access-control": "Enable Access Control",
"enable-debug-log": "Включить журнал отладки",
"enable-lowercase": "enable",
"enable-partition": "Включить раздел",
"enable-roles-polices-in-search": "Enable Roles & Policies in Search",
"enable-smtp-server": "Включить SMTP-сервер",
"enabled": "Включено",
"end-date": "Дата окончания",
Expand Down Expand Up @@ -1714,7 +1714,7 @@
"page-sub-header-for-profiler-configuration": "Customize globally the behavior of the profiler by setting the metrics to compute based on columns data types",
"page-sub-header-for-roles": "Назначьте полный доступ на основе ролей пользователям или командам.",
"page-sub-header-for-search": "Ingest metadata from the most popular search services.",
"page-sub-header-for-search-rbac": "Control over applying RBAC (Role Based Access Control) on search results.",
"page-sub-header-for-search-setting": "Ability to configure the search settings to suit your needs.",
"page-sub-header-for-setting": "Ability to configure the OpenMetadata application to suit your needs.",
"page-sub-header-for-storages": "Получайте метаданные из самых популярных служб хранения.",
"page-sub-header-for-table-profile": "Отслеживайте и анализируйте структуру ваших таблиц с помощью профилировщика.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
"embed-image": "插入图片",
"embed-link": "插入链接",
"enable": "启用",
"enable-access-control": "Enable Access Control",
"enable-debug-log": "启用调试日志",
"enable-lowercase": "启用",
"enable-partition": "启用分区",
"enable-roles-polices-in-search": "Enable Roles & Policies in Search",
"enable-smtp-server": "启用发送邮件功能",
"enabled": "已启用",
"end-date": "结束日期",
Expand Down Expand Up @@ -1714,7 +1714,7 @@
"page-sub-header-for-profiler-configuration": "根据列数据类型计算的指标, 设置全局自定义分析器的行为",
"page-sub-header-for-roles": "分配基于角色的访问权限给用户或团队",
"page-sub-header-for-search": "从最流行的搜索服务中提取元数据",
"page-sub-header-for-search-rbac": "Control over applying RBAC (Role Based Access Control) on search results.",
"page-sub-header-for-search-setting": "Ability to configure the search settings to suit your needs.",
"page-sub-header-for-setting": "能够根据需要配置 OpenMetadata 应用",
"page-sub-header-for-storages": "从最流行的存储类型服务中提取元数据",
"page-sub-header-for-table-profile": "通过数据分析工具了解和跟踪您的数据表结构",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ const SearchRBACSettingsPage = () => {
const breadcrumbs: TitleBreadcrumbProps['titleLinks'] = useMemo(
() =>
getSettingPageEntityBreadCrumb(
GlobalSettingsMenuCategory.ACCESS,
t('label.search-rbac')
GlobalSettingsMenuCategory.PREFERENCES,
t('label.search')
),
[]
);
Expand Down Expand Up @@ -111,7 +111,7 @@ const SearchRBACSettingsPage = () => {
<Row align="middle">
<Col span={24}>
<Typography.Text className="m-0 text-grey-muted">
{t('label.enable-access-control')}
{t('label.enable-roles-polices-in-search')}
<Tooltip
placement="top"
title={t('message.enable-access-control-description')}
Expand Down
Loading

0 comments on commit d059da5

Please sign in to comment.