chore: ci issues
This commit is contained in:
parent
efa27e82fe
commit
1c77a986ca
4 changed files with 3 additions and 11 deletions
|
|
@ -180,7 +180,7 @@ export const RepositoryInfoTabContent = ({ repository, initialStats }: Props) =>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col gap-1">
|
<div className="flex flex-col gap-1">
|
||||||
<div className="text-sm font-medium text-muted-foreground">Management</div>
|
<div className="text-sm font-medium text-muted-foreground">Management</div>
|
||||||
<p className="text-sm">{repository.managed ? "Provisioned" : "Manual"}</p>
|
<p className="text-sm">{repository.provisioningId ? "Provisioned" : "Manual"}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col gap-1">
|
<div className="flex flex-col gap-1">
|
||||||
<div className="text-sm font-medium text-muted-foreground">Compression Mode</div>
|
<div className="text-sm font-medium text-muted-foreground">Compression Mode</div>
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,6 @@ const ensureLatestConfigurationSchema = async () => {
|
||||||
const volumes = await db.query.volumesTable.findMany({});
|
const volumes = await db.query.volumesTable.findMany({});
|
||||||
|
|
||||||
for (const volume of volumes) {
|
for (const volume of volumes) {
|
||||||
if (volume.provisioningId) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
await withContext({ organizationId: volume.organizationId }, async () => {
|
await withContext({ organizationId: volume.organizationId }, async () => {
|
||||||
await volumeService.updateVolume(volume.shortId, volume).catch((err) => {
|
await volumeService.updateVolume(volume.shortId, volume).catch((err) => {
|
||||||
logger.error(`Failed to update volume ${volume.name}: ${err}`);
|
logger.error(`Failed to update volume ${volume.name}: ${err}`);
|
||||||
|
|
@ -36,10 +32,6 @@ const ensureLatestConfigurationSchema = async () => {
|
||||||
const repositories = await db.query.repositoriesTable.findMany({});
|
const repositories = await db.query.repositoriesTable.findMany({});
|
||||||
|
|
||||||
for (const repo of repositories) {
|
for (const repo of repositories) {
|
||||||
if (repo.provisioningId) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
await withContext({ organizationId: repo.organizationId }, async () => {
|
await withContext({ organizationId: repo.organizationId }, async () => {
|
||||||
await repositoriesService.updateRepository(repo.shortId, {}).catch((err) => {
|
await repositoriesService.updateRepository(repo.shortId, {}).catch((err) => {
|
||||||
logger.error(`Failed to update repository ${repo.name}: ${err}`);
|
logger.error(`Failed to update repository ${repo.name}: ${err}`);
|
||||||
|
|
|
||||||
|
|
@ -394,7 +394,7 @@ describe("repositories updates", () => {
|
||||||
|
|
||||||
expect(res.status).toBe(200);
|
expect(res.status).toBe(200);
|
||||||
const body = await res.json();
|
const body = await res.json();
|
||||||
expect(body.managed).toBe(true);
|
expect(body.provisioningId).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("PATCH allows updates for managed repositories", async () => {
|
test("PATCH allows updates for managed repositories", async () => {
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ describe("volumes security", () => {
|
||||||
|
|
||||||
expect(res.status).toBe(200);
|
expect(res.status).toBe(200);
|
||||||
const body = await res.json();
|
const body = await res.json();
|
||||||
expect(body.volume.managed).toBe(true);
|
expect(body.volume.provisioningId).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("should allow updates for managed volumes", async () => {
|
test("should allow updates for managed volumes", async () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue