Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: rename bb.workspace.general to bb.workspace.profile (#4957)
ecmadao3538c124391e
diff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.goindex da04da75bd..33da55ae57 100644--- a/backend/api/v1/setting_service.go+++ b/backend/api/v1/setting_service.go@@ -81,8 +81,9 @@ func (s *SettingService) SetSetting(ctx context.Context, request *v1pb.SetSettinapiSettingName := api.SettingName(settingName)settingValue := request.Setting.Value.GetStringValue()- if apiSettingName == api.SettingWorkspaceGeneral {- payload := new(storepb.WorkspaceGeneralSettingPayload)++ if apiSettingName == api.SettingWorkspaceProfile {+ payload := new(storepb.WorkspaceProfileSetting)if err := json.Unmarshal([]byte(settingValue), payload); err != nil {return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value: %v", err)}diff --git a/backend/component/config/profile.go b/backend/component/config/profile.goindex dbff0941df..a8b92af17a 100644--- a/backend/component/config/profile.go+++ b/backend/component/config/profile.go@@ -76,7 +76,7 @@ func (prof *Profile) UseEmbedDB() bool {}var saasFeatureControlMap = map[string]bool{- string(api.SettingWorkspaceGeneral): true,+ string(api.SettingWorkspaceProfile): true,}// IsFeatureUnavailable returns if the feature is unavailable in SaaS mode.diff --git a/backend/legacyapi/setting.go b/backend/legacyapi/setting.goindex 2fe2b43679..3406e4b8b6 100644--- a/backend/legacyapi/setting.go+++ b/backend/legacyapi/setting.go@@ -14,8 +14,8 @@ const (SettingBrandingLogo SettingName = "bb.branding.logo"// SettingWorkspaceID is the setting name for workspace identifier.SettingWorkspaceID SettingName = "bb.workspace.id"- // SettingWorkspaceGeneral is the setting name for workspace general settings.- SettingWorkspaceGeneral SettingName = "bb.workspace.general"+ // SettingWorkspaceProfile is the setting name for workspace profile settings.+ SettingWorkspaceProfile SettingName = "bb.workspace.profile"// SettingEnterpriseLicense is the setting name for enterprise license.SettingEnterpriseLicense SettingName = "bb.enterprise.license"// SettingEnterpriseTrial is the setting name for free trial.diff --git a/backend/server/server.go b/backend/server/server.goindex ddfcd4c0f4..1244fa3afb 100644--- a/backend/server/server.go+++ b/backend/server/server.go@@ -655,7 +655,7 @@ func (s *Server) getInitSetting(ctx context.Context, datastore *store.Store) (*w}// initial workspace general setting- bytes, err := json.Marshal(storepb.WorkspaceGeneralSettingPayload{+ bytes, err := json.Marshal(storepb.WorkspaceProfileSetting{ExternalUrl: s.profile.ExternalURL,DisallowSignup: false,})@@ -663,7 +663,7 @@ func (s *Server) getInitSetting(ctx context.Context, datastore *store.Store) (*wreturn nil, err}if _, _, err := datastore.CreateSettingIfNotExistV2(ctx, &store.SettingMessage{- Name: api.SettingWorkspaceGeneral,+ Name: api.SettingWorkspaceProfile,Value: string(bytes),Description: "Workspace general settings",}, api.SystemBotID); err != nil {diff --git a/backend/server/setting.go b/backend/server/setting.goindex 3a436bdd02..fdb0b145b7 100644--- a/backend/server/setting.go+++ b/backend/server/setting.go@@ -19,7 +19,7 @@ var whitelistSettings = []api.SettingName{api.SettingBrandingLogo,api.SettingAppIM,api.SettingWatermark,- api.SettingWorkspaceGeneral,+ api.SettingWorkspaceProfile,}func (s *Server) registerSettingRoutes(g *echo.Group) {@@ -67,8 +67,8 @@ func (s *Server) registerSettingRoutes(g *echo.Group) {return echo.NewHTTPError(http.StatusBadRequest, "Malformed update setting request").SetInternal(err)}- if settingPatch.Name == api.SettingWorkspaceGeneral {- payload := new(storepb.WorkspaceGeneralSettingPayload)+ if settingPatch.Name == api.SettingWorkspaceProfile {+ payload := new(storepb.WorkspaceProfileSetting)if err := json.Unmarshal([]byte(settingPatch.Value), payload); err != nil {return echo.NewHTTPError(http.StatusInternalServerError, "Failed to unmarshal setting value").SetInternal(err)}diff --git a/backend/store/setting.go b/backend/store/setting.goindex 28e43e2586..fb110f8702 100644--- a/backend/store/setting.go+++ b/backend/store/setting.go@@ -42,8 +42,8 @@ func (s *Store) GetSetting(ctx context.Context, find *api.SettingFind) (*api.Set}// GetWorkspaceGeneralSetting gets the workspace general setting payload.-func (s *Store) GetWorkspaceGeneralSetting(ctx context.Context) (*storepb.WorkspaceGeneralSettingPayload, error) {- settingName := api.SettingWorkspaceGeneral+func (s *Store) GetWorkspaceGeneralSetting(ctx context.Context) (*storepb.WorkspaceProfileSetting, error) {+ settingName := api.SettingWorkspaceProfilesetting, err := s.GetSetting(ctx, &api.SettingFind{Name: &settingName,})@@ -54,7 +54,7 @@ func (s *Store) GetWorkspaceGeneralSetting(ctx context.Context) (*storepb.Workspreturn nil, errors.Errorf("cannot find setting %v", settingName)}- payload := new(storepb.WorkspaceGeneralSettingPayload)+ payload := new(storepb.WorkspaceProfileSetting)if err := json.Unmarshal([]byte(setting.Value), payload); err != nil {return nil, err}diff --git a/frontend/src/components/GeneralSetting/NetworkSetting.vue b/frontend/src/components/GeneralSetting/NetworkSetting.vueindex e7d8fecb92..305cbe4a6c 100644--- a/frontend/src/components/GeneralSetting/NetworkSetting.vue+++ b/frontend/src/components/GeneralSetting/NetworkSetting.vue@@ -63,7 +63,7 @@ import { computed, reactive, watchEffect } from "vue";import { pushNotification, useCurrentUser, useSettingStore } from "@/store";import { hasWorkspacePermission } from "@/utils";import { useI18n } from "vue-i18n";-import { WorkspaceGeneralSettingPayload } from "@/types/proto/store/setting";+import { WorkspaceProfileSetting } from "@/types/proto/store/setting";interface LocalState {externalUrl: string;@@ -105,14 +105,14 @@ const updateExternalUrl = async () => {return;}- const payload: WorkspaceGeneralSettingPayload = {+ const payload: WorkspaceProfileSetting = {disallowSignup: settingStore.workspaceSetting?.disallowSignup ?? false,externalUrl: settingStore.workspaceSetting?.externalUrl ?? "",};payload.externalUrl = state.externalUrl;await settingStore.updateSettingByName({- name: "bb.workspace.general",+ name: "bb.workspace.profile",value: JSON.stringify(payload),});pushNotification({diff --git a/frontend/src/components/GeneralSetting/SecuritySetting.vue b/frontend/src/components/GeneralSetting/SecuritySetting.vueindex fd711c8988..3d5600c0f4 100644--- a/frontend/src/components/GeneralSetting/SecuritySetting.vue+++ b/frontend/src/components/GeneralSetting/SecuritySetting.vue@@ -89,7 +89,7 @@ import {import { BBCheckbox } from "@/bbkit";import { hasWorkspacePermission } from "@/utils";import { useI18n } from "vue-i18n";-import { WorkspaceGeneralSettingPayload } from "@/types/proto/store/setting";+import { WorkspaceProfileSetting } from "@/types/proto/store/setting";interface LocalState {showFeatureModal: boolean;@@ -120,14 +120,14 @@ const disallowSignupEnabled = computed((): boolean => {});const handleDisallowSignupToggle = async (on: boolean) => {- const payload: WorkspaceGeneralSettingPayload = {+ const payload: WorkspaceProfileSetting = {disallowSignup: settingStore.workspaceSetting?.disallowSignup ?? false,externalUrl: settingStore.workspaceSetting?.externalUrl ?? "",};payload.disallowSignup = on;await settingStore.updateSettingByName({- name: "bb.workspace.general",+ name: "bb.workspace.profile",value: JSON.stringify(payload),});pushNotification({diff --git a/frontend/src/store/modules/setting.ts b/frontend/src/store/modules/setting.tsindex ed12c3c644..41b5ae45d4 100644--- a/frontend/src/store/modules/setting.ts+++ b/frontend/src/store/modules/setting.ts@@ -3,7 +3,7 @@ import { defineStore } from "pinia";import axios from "axios";import { MaybeRef, ResourceObject, SettingState } from "@/types";import { Setting, SettingName } from "@/types/setting";-import { WorkspaceGeneralSettingPayload } from "@/types/proto/store/setting";+import { WorkspaceProfileSetting } from "@/types/proto/store/setting";function convert(setting: ResourceObject,@@ -20,13 +20,13 @@ export const useSettingStore = defineStore("setting", {settingByName: new Map(),}),getters: {- workspaceSetting(state): WorkspaceGeneralSettingPayload | undefined {- const setting = state.settingByName.get("bb.workspace.general");+ workspaceSetting(state): WorkspaceProfileSetting | undefined {+ const setting = state.settingByName.get("bb.workspace.profile");if (!setting || !setting.value) {return;}- return WorkspaceGeneralSettingPayload.fromJSON(JSON.parse(setting.value));+ return WorkspaceProfileSetting.fromJSON(JSON.parse(setting.value));},},actions: {diff --git a/frontend/src/types/proto/store/setting.ts b/frontend/src/types/proto/store/setting.tsindex 08a4a796df..45d1cc9166 100644--- a/frontend/src/types/proto/store/setting.ts+++ b/frontend/src/types/proto/store/setting.ts@@ -3,7 +3,7 @@ import * as _m0 from "protobufjs/minimal";export const protobufPackage = "bytebase.store";-export interface WorkspaceGeneralSettingPayload {+export interface WorkspaceProfileSetting {/*** The URL user visits Bytebase.*@@ -16,12 +16,12 @@ export interface WorkspaceGeneralSettingPayload {disallowSignup: boolean;}-function createBaseWorkspaceGeneralSettingPayload(): WorkspaceGeneralSettingPayload {+function createBaseWorkspaceProfileSetting(): WorkspaceProfileSetting {return { externalUrl: "", disallowSignup: false };}-export const WorkspaceGeneralSettingPayload = {- encode(message: WorkspaceGeneralSettingPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const WorkspaceProfileSetting = {+ encode(message: WorkspaceProfileSetting, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.externalUrl !== "") {writer.uint32(10).string(message.externalUrl);}@@ -31,10 +31,10 @@ export const WorkspaceGeneralSettingPayload = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): WorkspaceGeneralSettingPayload {+ decode(input: _m0.Reader | Uint8Array, length?: number): WorkspaceProfileSetting {const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseWorkspaceGeneralSettingPayload();+ const message = createBaseWorkspaceProfileSetting();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -52,22 +52,22 @@ export const WorkspaceGeneralSettingPayload = {return message;},- fromJSON(object: any): WorkspaceGeneralSettingPayload {+ fromJSON(object: any): WorkspaceProfileSetting {return {externalUrl: isSet(object.externalUrl) ? String(object.externalUrl) : "",disallowSignup: isSet(object.disallowSignup) ? Boolean(object.disallowSignup) : false,};},- toJSON(message: WorkspaceGeneralSettingPayload): unknown {+ toJSON(message: WorkspaceProfileSetting): unknown {const obj: any = {};message.externalUrl !== undefined && (obj.externalUrl = message.externalUrl);message.disallowSignup !== undefined && (obj.disallowSignup = message.disallowSignup);return obj;},- fromPartial(object: DeepPartial<WorkspaceGeneralSettingPayload>): WorkspaceGeneralSettingPayload {- const message = createBaseWorkspaceGeneralSettingPayload();+ fromPartial(object: DeepPartial<WorkspaceProfileSetting>): WorkspaceProfileSetting {+ const message = createBaseWorkspaceProfileSetting();message.externalUrl = object.externalUrl ?? "";message.disallowSignup = object.disallowSignup ?? false;return message;diff --git a/frontend/src/types/proto/v1/actuator_service.ts b/frontend/src/types/proto/v1/actuator_service.tsindex 061b9f22c7..5ad50a7e04 100644--- a/frontend/src/types/proto/v1/actuator_service.ts+++ b/frontend/src/types/proto/v1/actuator_service.ts@@ -7,6 +7,10 @@ export const protobufPackage = "bytebase.v1";export interface GetActuatorInfoRequest {}+/**+ * ServerInfo is the API message for server info.+ * Actuator concept is similar to the Spring Boot Actuator.+ */export interface ActuatorInfo {version: string;gitCommit: string;diff --git a/frontend/src/types/setting.ts b/frontend/src/types/setting.tsindex 4d9cbb4d81..9d6b15eea8 100644--- a/frontend/src/types/setting.ts+++ b/frontend/src/types/setting.ts@@ -4,7 +4,7 @@ export type SettingName =| "bb.branding.logo"| "bb.app.im"| "bb.workspace.watermark"- | "bb.workspace.general";+ | "bb.workspace.profile";export type Setting = {id: SettingId;diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 6979bbf97e..0942a13b36 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -24,7 +24,7 @@- [IdentityProviderType](#bytebase-store-IdentityProviderType)- [store/setting.proto](#store_setting-proto)- - [WorkspaceGeneralSettingPayload](#bytebase-store-WorkspaceGeneralSettingPayload)+ - [WorkspaceProfileSetting](#bytebase-store-WorkspaceProfileSetting)- [Scalar Value Types](#scalar-value-types)@@ -357,9 +357,9 @@ OIDCIdentityProviderConfig is the structure for OIDC identity provider config.-<a name="bytebase-store-WorkspaceGeneralSettingPayload"></a>+<a name="bytebase-store-WorkspaceProfileSetting"></a>-### WorkspaceGeneralSettingPayload+### WorkspaceProfileSettingdiff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex f75d9f464f..bd0dca5b37 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -251,7 +251,8 @@<a name="bytebase-v1-ActuatorInfo"></a>### ActuatorInfo-+ServerInfo is the API message for server info.+Actuator concept is similar to the Spring Boot Actuator.| Field | Type | Label | Description |diff --git a/proto/generated-go/store/setting.pb.go b/proto/generated-go/store/setting.pb.goindex 9762e32578..2a6ce28327 100644--- a/proto/generated-go/store/setting.pb.go+++ b/proto/generated-go/store/setting.pb.go@@ -20,7 +20,7 @@ const (_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))-type WorkspaceGeneralSettingPayload struct {+type WorkspaceProfileSetting struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields@@ -35,8 +35,8 @@ type WorkspaceGeneralSettingPayload struct {DisallowSignup bool `protobuf:"varint,2,opt,name=disallow_signup,json=disallowSignup,proto3" json:"disallow_signup,omitempty"`}-func (x *WorkspaceGeneralSettingPayload) Reset() {- *x = WorkspaceGeneralSettingPayload{}+func (x *WorkspaceProfileSetting) Reset() {+ *x = WorkspaceProfileSetting{}if protoimpl.UnsafeEnabled {mi := &file_store_setting_proto_msgTypes[0]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -44,13 +44,13 @@ func (x *WorkspaceGeneralSettingPayload) Reset() {}}-func (x *WorkspaceGeneralSettingPayload) String() string {+func (x *WorkspaceProfileSetting) String() string {return protoimpl.X.MessageStringOf(x)}-func (*WorkspaceGeneralSettingPayload) ProtoMessage() {}+func (*WorkspaceProfileSetting) ProtoMessage() {}-func (x *WorkspaceGeneralSettingPayload) ProtoReflect() protoreflect.Message {+func (x *WorkspaceProfileSetting) ProtoReflect() protoreflect.Message {mi := &file_store_setting_proto_msgTypes[0]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -62,19 +62,19 @@ func (x *WorkspaceGeneralSettingPayload) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use WorkspaceGeneralSettingPayload.ProtoReflect.Descriptor instead.-func (*WorkspaceGeneralSettingPayload) Descriptor() ([]byte, []int) {+// Deprecated: Use WorkspaceProfileSetting.ProtoReflect.Descriptor instead.+func (*WorkspaceProfileSetting) Descriptor() ([]byte, []int) {return file_store_setting_proto_rawDescGZIP(), []int{0}}-func (x *WorkspaceGeneralSettingPayload) GetExternalUrl() string {+func (x *WorkspaceProfileSetting) GetExternalUrl() string {if x != nil {return x.ExternalUrl}return ""}-func (x *WorkspaceGeneralSettingPayload) GetDisallowSignup() bool {+func (x *WorkspaceProfileSetting) GetDisallowSignup() bool {if x != nil {return x.DisallowSignup}@@ -86,16 +86,15 @@ var File_store_setting_proto protoreflect.FileDescriptorvar file_store_setting_proto_rawDesc = []byte{0x0a, 0x13, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x6c, 0x0a, 0x1e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,- 0x63, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,- 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72,- 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65,- 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x69,- 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x69, 0x67,- 0x6e, 0x75, 0x70, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,- 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,- 0x33,+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x65, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,+ 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,+ 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,+ 0x55, 0x72, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f,+ 0x73, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69,+ 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x42, 0x14, 0x5a, 0x12,+ 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f,+ 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -112,7 +111,7 @@ func file_store_setting_proto_rawDescGZIP() []byte {var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 1)var file_store_setting_proto_goTypes = []interface{}{- (*WorkspaceGeneralSettingPayload)(nil), // 0: bytebase.store.WorkspaceGeneralSettingPayload+ (*WorkspaceProfileSetting)(nil), // 0: bytebase.store.WorkspaceProfileSetting}var file_store_setting_proto_depIdxs = []int32{0, // [0:0] is the sub-list for method output_type@@ -129,7 +128,7 @@ func file_store_setting_proto_init() {}if !protoimpl.UnsafeEnabled {file_store_setting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*WorkspaceGeneralSettingPayload); i {+ switch v := v.(*WorkspaceProfileSetting); i {case 0:return &v.statecase 1:diff --git a/proto/generated-go/v1/actuator_service.pb.go b/proto/generated-go/v1/actuator_service.pb.goindex 0ca77482ab..9b344c4e98 100644--- a/proto/generated-go/v1/actuator_service.pb.go+++ b/proto/generated-go/v1/actuator_service.pb.go@@ -60,6 +60,8 @@ func (*GetActuatorInfoRequest) Descriptor() ([]byte, []int) {return file_v1_actuator_service_proto_rawDescGZIP(), []int{0}}+// ServerInfo is the API message for server info.+// Actuator concept is similar to the Spring Boot Actuator.type ActuatorInfo struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCachediff --git a/proto/store/setting.proto b/proto/store/setting.protoindex 378c380b11..3b9208df0f 100644--- a/proto/store/setting.proto+++ b/proto/store/setting.proto@@ -4,7 +4,7 @@ package bytebase.store;option go_package = "generated-go/store";-message WorkspaceGeneralSettingPayload {+message WorkspaceProfileSetting {// The URL user visits Bytebase.//// The external URL is used for: