Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Feat/contact change #1356

Merged
merged 4 commits into from
Sep 19, 2019
Merged

Feat/contact change #1356

merged 4 commits into from
Sep 19, 2019

Conversation

marie-j
Copy link
Contributor

@marie-j marie-j commented Aug 23, 2019

Prevent billing contact changes for services with a debt

Description of the Change

  • Refactor contacts servcies section
  • Do not allow contact billing change for services with a debt

MBE-269

Related

⚠️ Texts are being reviewed by content team

JeremyDec
JeremyDec previously approved these changes Aug 23, 2019
@marie-j
Copy link
Contributor Author

marie-j commented Aug 23, 2019

Edit: Content has been reviewed

@ovh-ux ovh-ux deleted a comment from ovh-cds Aug 23, 2019
@antleblanc
Copy link
Contributor

antleblanc
antleblanc previously approved these changes Aug 23, 2019
FredericEspiau
FredericEspiau previously approved these changes Aug 27, 2019
Copy link
Contributor

@FredericEspiau FredericEspiau left a comment

Choose a reason for hiding this comment

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

👍

this.OvhHttp = OvhHttp;
}

// TODO: Find a way to inject ovh-api-services depending on the service category
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 a good requirement for the successor of ovh-api-services, maybe you could add it to the document of requirements (ask JC for it as I don't know where it is :D)


getServices() {
return this.OvhApiOvhProduct.Aapi().query().$promise
.then((services) => {
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
.then((services) => {
.then((services) => _.map(
_.filter(
services,
service => AVAILABLE_SERVICES.includes(service.category),
),
service => new BillingService(service),
)

Copy link
Contributor

Choose a reason for hiding this comment

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

Both solutions are correct. We can keep the default one.

@marie-j marie-j removed the question Further information is requested label Aug 28, 2019
@marie-j marie-j force-pushed the feat/contact-change branch from fef154a to 25695fd Compare August 28, 2019 09:57
@ovh-ux ovh-ux deleted a comment from ovh-cds Aug 28, 2019
@ovh-ux ovh-ux deleted a comment from ovh-cds Aug 28, 2019
@ovh-ux ovh-ux deleted a comment from ovh-cds Aug 28, 2019
antleblanc
antleblanc previously approved these changes Aug 28, 2019
@jleveugle
Copy link
Contributor

Hello @marie-j,
Your pull request is now closed due to inactivity.
Feel free to re-open it if you have any update.
Anna Bot for OVH UX <3

@marie-j marie-j force-pushed the feat/contact-change branch from 15fe69a to 4030423 Compare September 16, 2019 15:06
frenautvh
frenautvh previously approved these changes Sep 16, 2019
cbourgois
cbourgois previously approved these changes Sep 17, 2019

getServices() {
return this.OvhApiOvhProduct.Aapi().query().$promise
.then((services) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Both solutions are correct. We can keep the default one.

@antleblanc antleblanc merged commit e9babbf into develop Sep 19, 2019
@antleblanc antleblanc deleted the feat/contact-change branch September 19, 2019 06:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

7 participants