-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add object & cloud-archives storages #365
Conversation
ref: MANAGER-2290, MANAGER-2289, MANAGER-2361, MANAGER-2362, MANAGER-2359, MANAGER-2360
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pointed out some missing import/injection (especially for both 'oc.lazyLoad'
and 'ui.bootstrap'
) but it looks like a copy/paste across module creation so feel free to ignore them if not needed.
packages/manager/modules/pci/src/projects/project/storages/cloud-archives/add/index.js
Outdated
Show resolved
Hide resolved
...nager/modules/pci/src/projects/project/storages/cloud-archives/cloud-archive/delete/index.js
Outdated
Show resolved
Hide resolved
...nager/modules/pci/src/projects/project/storages/cloud-archives/cloud-archive/delete/index.js
Outdated
Show resolved
Hide resolved
...ages/manager/modules/pci/src/projects/project/storages/cloud-archives/cloud-archive/index.js
Outdated
Show resolved
Hide resolved
...ages/manager/modules/pci/src/projects/project/storages/cloud-archives/cloud-archive/index.js
Outdated
Show resolved
Hide resolved
packages/manager/modules/pci/src/projects/project/storages/objects/object/index.js
Outdated
Show resolved
Hide resolved
packages/manager/modules/pci/src/projects/project/storages/objects/object/object/add/index.js
Outdated
Show resolved
Hide resolved
packages/manager/modules/pci/src/projects/project/storages/objects/object/object/add/index.js
Outdated
Show resolved
Hide resolved
...ages/manager/modules/pci/src/projects/project/storages/objects/object/object/delete/index.js
Outdated
Show resolved
Hide resolved
...ages/manager/modules/pci/src/projects/project/storages/objects/object/object/delete/index.js
Outdated
Show resolved
Hide resolved
packages/manager/modules/pci/src/projects/project/storages/containers/add/add.controller.js
Outdated
Show resolved
Hide resolved
packages/manager/modules/pci/src/projects/project/storages/containers/add/add.controller.js
Outdated
Show resolved
Hide resolved
...anager/modules/pci/src/projects/project/storages/containers/container/container.component.js
Outdated
Show resolved
Hide resolved
} | ||
|
||
initLoaders() { | ||
this.prefix = '/'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
constant maybe ?
packages/manager/modules/pci/src/projects/project/storages/containers/containers.service.js
Outdated
Show resolved
Hide resolved
65 files and only one commit ? :( |
component: 'pciProjectStorageContainersContainer', | ||
resolve: { | ||
containerId: /* @ngInject */ $transition$ => $transition$.params().containerId, | ||
addObject: /* @ngInject */ ($state, projectId, containerId) => () => $state.go('pci.projects.project.storages.objects.object.add', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this won't add an object but this will change state to be able to add an object, this is confusing
containerId, | ||
objectId: object.name, | ||
}), | ||
goBack: /* @ngInject */ ($state, projectId) => () => $state.go('pci.projects.project.storages.objects', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goBack
is also confusing, what if was nothing before ? exit
looks more generic to me
import get from 'lodash/get'; | ||
import map from 'lodash/map'; | ||
|
||
import Container from '../container.class'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import Container from '../container.class'; | |
import Container from '../container'; |
would be enough imo :)
feat: add object & cloud-archives storages
Description of the Change
Add 3 entries in
packages/manager/modules/pci/src/projects/project/storages
:containers
: containing componentsobjects
: routing for Object Storage, usingcontainers
componentscloud-archives
: routing for Cloud Archive, usingcontainers
componentsref: MANAGER-2290, MANAGER-2289, MANAGER-2361, MANAGER-2362, MANAGER-2359, MANAGER-2360
6a555ab — feat: add object & cloud-archives storages
Related PR :
/cc @jleveugle @marie-j @antleblanc