Skip to content
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

Merged
merged 5 commits into from
Apr 12, 2019

Conversation

cbourgois
Copy link
Contributor

feat: add object & cloud-archives storages

Description of the Change

Add 3 entries in packages/manager/modules/pci/src/projects/project/storages:

  • containers: containing components
  • objects: routing for Object Storage, using containers components
  • cloud-archives: routing for Cloud Archive, using containers components

ref: 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

ref: MANAGER-2290, MANAGER-2289, MANAGER-2361, MANAGER-2362, MANAGER-2359, MANAGER-2360
@cbourgois cbourgois added the feature New feature label Apr 11, 2019
@cbourgois cbourgois self-assigned this Apr 11, 2019
Copy link
Member

@antleblanc antleblanc left a 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.

}

initLoaders() {
this.prefix = '/';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

constant maybe ?

@FredericEspiau
Copy link
Contributor

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', {
Copy link
Contributor

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', {
Copy link
Contributor

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';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import Container from '../container.class';
import Container from '../container';

would be enough imo :)

@jleveugle jleveugle merged commit 91be676 into public-cloud Apr 12, 2019
@jleveugle jleveugle deleted the feat/object-archive-storage branch April 12, 2019 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants