(revision: Revision)
| 11 | }; |
| 12 | |
| 13 | export const revisionLink = (revision: Revision): string => { |
| 14 | const parts = revision.name.split("/revisions/"); |
| 15 | if (parts.length !== 2) { |
| 16 | return ""; |
| 17 | } |
| 18 | const { database } = extractDatabaseResourceName(revision.name); |
| 19 | const composedDatabase = getDatabaseByName(database); |
| 20 | return `${databaseV1Url(composedDatabase)}/revisions/${parts[1]}`; |
| 21 | }; |
| 22 | |
| 23 | export const getRevisionType = (type: Revision_Type): string => { |
| 24 | switch (type) { |
no test coverage detected