githubbob42 / mingle2github2

0 stars 1 forks source link

Add new routes for form and report views #5791

Open githubbob42 opened 5 years ago

githubbob42 commented 5 years ago

Mingle Card: 6157 Narrative

Fix routes for forms and reports to be parameterized so we do not have to grab and parse the URL every time a report or form is opened.

Acceptance Criteria

Analysis

We have 8 files where we are grabbing the URL and parsing it from the address bar:

Proposal solution:

| | |
|-|-|
|

Module

   |
|

Route pattern

   |

fx-forms/index

   |
|

**Old****   – **form/:parentType/:parentSyncId/:sobject/:syncid(/:childSObject)(/:field)

**New** **–**:rootModule/:syncid/form/:formSobject/:formSyncid(/:childSObject)(/:field)

   |
|

fx-forms/templates

   |
|

**Old** **–**form/:parentType/:parentSyncId

**New ****–**:rootModule/:syncid/form

   |
|

print/view

   |
|

**Old**

    *   attachment/:sobject/:id?returnURL

**New**

    *   :rootModule/:syncid/report/:reportSobject/:reportId

         *   handles job/ticket/quote attachments

    *   :rootModule/:syncid/:formSobject/:formSyncid/report/:reportSobject/:reportId

         *   handles job/ticket/quote form attachments

   |

Stories

{{ table query: SELECT Number, Name, Owner, Status, 'Story Points' WHERE Type = Story and Feature = THIS CARD ORDER BY Status }}

Impact Analysis

Test Plan