-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MNOE-428] Migrate mno-enterprise to MnoHub API V2
- Add missing methods on user and organization User - Add create_api_credentials Organization - add role - add payment_restriction - add orga_relation - Add KPI and Alert - Implement Invite and Delete Organization Members - Implement Create Organization - Implement Update member - Implement Team management - Add star_ready? connec_ready? and responsive - Implement app instance provisioning - Implement Team Update - Implement Dashboard management - Implement widget controller - Update Dashboard - Correct issues with Dashboard's widgets not being sorted - Implement App Synchronisation - Apply Code Review Remark - Implement Audit Logging - Start Spec Writing - Adapt organization_spec.rb - Adapt Team Controller - Adapt Specs
- Loading branch information
Showing
137 changed files
with
1,997 additions
and
1,264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
api/app/views/mno_enterprise/jpi/v1/audit_events/index.json.jbuilder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
json.audit_events do | ||
json.array! @audit_events, partial: 'audit_event', as: :audit_event | ||
end | ||
json.metadata @audit_events.metadata | ||
# TODO: Port previous pagination metadata information ? | ||
# json.metadata @audit_events.metadata | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
api/app/views/mno_enterprise/jpi/v1/impac/alerts/_alert.json.jbuilder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
json.ignore_nil! | ||
json.extract! alert, :id, :title, :webhook, :service, :sent | ||
json.metadata alert.settings | ||
json.kpi_id alert.impac_kpi_id | ||
json.kpi_id alert.kpi_id | ||
json.recipients alert.recipients.map do |recipient| | ||
json.extract! recipient, :id, :email | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 3 additions & 6 deletions
9
api/app/views/mno_enterprise/jpi/v1/organizations/_invoices.json.jbuilder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
json.invoices do | ||
# TODO: Introduce pagination | ||
json.array! organization.invoices.order_by('ended_at.desc').limit(12) do |invoice| | ||
json.period invoice.period_label | ||
json.amount AccountingjsSerializer.serialize(invoice.total_due) | ||
json.paid invoice.paid? | ||
json.link mno_enterprise.invoice_path(invoice.slug) | ||
end | ||
json.array! [] | ||
# TODO [MIGRATION_V2] remove and replace by a call to /organizations/id/invoices | ||
|
||
end |
6 changes: 3 additions & 3 deletions
6
api/app/views/mno_enterprise/jpi/v1/organizations/_member.json.jbuilder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
api/app/views/mno_enterprise/jpi/v1/teams/_team.json.jbuilder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.