Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion locale/en.js

Large diffs are not rendered by default.

235 changes: 207 additions & 28 deletions locale/en.po

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locale/es.js

Large diffs are not rendered by default.

235 changes: 207 additions & 28 deletions locale/es.po

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locale/fr.js

Large diffs are not rendered by default.

235 changes: 207 additions & 28 deletions locale/fr.po

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locale/ja.js

Large diffs are not rendered by default.

235 changes: 207 additions & 28 deletions locale/ja.po

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locale/ko.js

Large diffs are not rendered by default.

235 changes: 207 additions & 28 deletions locale/ko.po

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locale/nl.js

Large diffs are not rendered by default.

235 changes: 207 additions & 28 deletions locale/nl.po

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locale/zh.js

Large diffs are not rendered by default.

235 changes: 207 additions & 28 deletions locale/zh.po

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions src/app-routes.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1078,22 +1078,21 @@ describe('lazily loaded screens', () => {
expect(element.type, path).toBe(guard.type);
expect(element.props.plugin, path).toBe('ansible');
}
// the distribution page is the one ansible screen drawn by the framework
// the distribution screens are the ansible screens drawn by the framework
expect(
guardedRoutes.filter(
(route) =>
route.path?.startsWith('/ansible/') &&
route.path !== '/ansible/distributions/:name',
route.path !== '/ansible/distributions/:name' &&
route.path !== '/ansible/distributions/:name/edit' &&
route.path !== '/ansible/distribution/new',
),
).toHaveLength(legacy.length);
});

it.each([
'/file/repositories/zz-test-repo/publications',
'/file/repositories/zz-test-repo/content',
'/file/distributions/zz-test-dist/edit',
'/file/distribution/new',
'/maven/distributions/zz-test-dist/edit',
])(
'shows not found for %s, whose screen does not exist yet, without a read',
async (route) => {
Expand Down
5 changes: 4 additions & 1 deletion src/descriptors/container/descriptor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import type { PluginDescriptor } from 'src/framework/descriptor';
// and what it imports are one chunk that loads when a screen of the plugin's
// distributions is first shown.
const descriptor: PluginDescriptor = {
distribution: { entity: containerDistribution },
distribution: {
entity: containerDistribution,
guardManagedByServer: true,
},
};

export default descriptor;
9 changes: 2 additions & 7 deletions src/descriptors/python/descriptor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -553,16 +553,11 @@ describe('Unit: the python descriptor', { tags: ['unit'] }, () => {
});

describe('what serves and what is served', () => {
it('reads python distributions, reads publications without serving from them and offers Edit distribution for the permission held on every distribution', () => {
it('reads python distributions and reads publications without serving from them, and declares no dialog of its own for editing a distribution', () => {
expect(descriptor.distribution?.entity).toBeTruthy();
expect(descriptor.publication?.entity).toBeTruthy();
expect(descriptor.publication?.servesFromPublication).toBe(false);
expect(descriptor.distribution?.edit?.permission).toBe(
'python.change_pythondistribution',
);
expect(
text(descriptor.distribution?.edit?.label as MessageDescriptor),
).toBe('Edit distribution');
expect(descriptor.distribution).not.toHaveProperty('edit');
});

it('is the descriptor of a plugin that is on the framework, with the permissions the python viewsets check and object roles as the manifest has them', () => {
Expand Down
9 changes: 1 addition & 8 deletions src/descriptors/python/descriptor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
repositoryColumns,
} from 'src/framework/repository-columns';
import { shellQuote } from 'src/utilities/shell-quote';
import { PythonDistributionEdit } from './distribution-edit';
import { packagesTab } from './packages-tab';

// What a python remote holds beyond what every remote has, read from the loose
Expand Down Expand Up @@ -269,15 +268,9 @@ const descriptor: PluginDescriptor<PythonRepository> = {
// A python distribution is served from the repository's versions, never
// from its publications. Publications are deprecated, but a distribution can
// still be bound to one, so they are read to find the repository such a
// distribution serves. Its pull-through remote and upload permission can be
// changed after it is made, by an account that may change distributions.
// distribution serves.
distribution: {
entity: pythonDistribution,
edit: {
permission: 'python.change_pythondistribution',
label: msg`Edit distribution`,
dialog: (props) => <PythonDistributionEdit {...props} />,
},
},
publication: { entity: pythonPublication, servesFromPublication: false },
};
Expand Down
168 changes: 0 additions & 168 deletions src/descriptors/python/distribution-edit-session.test.tsx

This file was deleted.

Loading
Loading