Skip to content

Commit 498d96f

Browse files
committed
Add better namespace ui for repo root
1 parent be025ff commit 498d96f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

datajunction-ui/src/app/services/DJService.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ export const DataJunctionAPI = {
7070
tagType
7171
}
7272
editedBy
73+
owners {
74+
username
75+
}
7376
current {
7477
displayName
7578
status
@@ -2736,6 +2739,19 @@ export const DataJunctionAPI = {
27362739
// Git Branch Management APIs
27372740
// ============================================================
27382741

2742+
// Get all branch namespaces for a parent namespace
2743+
getNamespaceBranches: async function (namespace) {
2744+
const response = await fetch(`${DJ_URL}/namespaces/${namespace}/branches`, {
2745+
credentials: 'include',
2746+
});
2747+
if (!response.ok) {
2748+
if (response.status === 404) return [];
2749+
const result = await response.json().catch(() => ({}));
2750+
throw new Error(result.message || 'Failed to get branches');
2751+
}
2752+
return response.json();
2753+
},
2754+
27392755
// Get git configuration for a namespace
27402756
getNamespaceGitConfig: async function (namespace) {
27412757
const response = await fetch(`${DJ_URL}/namespaces/${namespace}/git`, {

0 commit comments

Comments
 (0)