Create view joining invoice and acquisitions-unit-assignments

Description

Overview

In order to support querying for invoices based on acquisitions units, we need to create a view which joins the invoices and acquisitions_unit_assignments tables on:

invoices.id == assignments.recordId

The GET /invoice-storage/invoices endpoint should be updated to query this view instead of the invoices table directly. The response schema should still be a collection of invoices

Approach

Use the RMB method of view creation, e.g. see an example here

Acceptance Criteria

  • The new view is created and used when querying invoices

  • Unit tests are updated

Environment

None

Potential Workaround

None

CSP Approved

None

CSP Request Details

None

CSP Rejection Details

None

Checklist

hide

TestRail: Results

Activity

Show:

Kruthi Vuppala August 1, 2019 at 2:16 PM

We are going to include acq units in invoice schema. Story no longer needed

Aliaksandr Pautau August 1, 2019 at 2:15 PM

I guess we're not going to do this, so the story could be closed.

Won't Do

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Development Team

Thunderjet

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created June 18, 2019 at 8:17 PM
Updated August 13, 2019 at 11:07 AM
Resolved August 1, 2019 at 2:16 PM
TestRail: Cases
TestRail: Runs