( _audit: ModelAudit, remoteAuditId: string, showAuth: boolean = false, )
| 885 | * @returns The shareable URL for the model audit. |
| 886 | */ |
| 887 | export function getShareableModelAuditUrl( |
| 888 | _audit: ModelAudit, |
| 889 | remoteAuditId: string, |
| 890 | showAuth: boolean = false, |
| 891 | ): string { |
| 892 | const appBaseUrl = cloudConfig.isEnabled() |
| 893 | ? cloudConfig.getAppUrl() |
| 894 | : getShareViewBaseUrl() || getDefaultShareViewBaseUrl(); |
| 895 | |
| 896 | const fullUrl = `${appBaseUrl}/model-audit/${remoteAuditId}`; |
| 897 | |
| 898 | return showAuth ? fullUrl : stripAuthFromUrl(fullUrl); |
| 899 | } |
no test coverage detected
searching dependent graphs…