project-lux / lux-marklogic

Code, issues, and resources related to LUX MarkLogic
Other
3 stars 2 forks source link

Instead of LUX Environment Overview Spreadsheet, Pull Info Dynamically #264

Closed clarkepeterf closed 2 months ago

clarkepeterf commented 4 months ago

Problem Description: The LUX Environment Overview Spreadsheet must be updated manually. This means it can be out of date if not updated along with code deployment, or subject to user error when entering data.

Expected Behavior/Solution:

Instead of using the spreadsheet we could create a webpage that interacts with API endpoints in Jenkins deployments or the applications themselves to display the correct info.

Requirements:

Needed for promotion:

- [ ] Wireframe/Mockup - Mike - [ ] Committee discussions - Sarah - [ ] Feasibility/Team discussion - Sarah - [ ] Backend requirements - TBD - [ ] Frontend requirements- TBD - [ ] Are new regression tests required for QA - Amy - [ ] Questions - List of questions for discussions. Answers should be documented within the issue.

UAT/LUX Examples:

Note: Green doesn't have the ML code to display versions right now. We don't want to update the code in PRD, so Green will show errors until after the next blue-green switch (on October 1st) when we can update it.

Dependencies/Blocks:

- Blocked By: Issues that are blocking the completion of the current issue. - Blocking: Issues being blocked by the completion of the current issue.

Related Github Issues:

- Issues that contain similar work but are not blocking or being blocked by the current issue.

Related links:

- These links can consist of resources, bugherds, etc.

Wireframe/Mockup: Place wireframe/mockup for the proposed solution at end of ticket.

roamye commented 3 months ago

@clarkepeterf - I added the LUX environment spreadsheet into the UAT section. Before any environments change we should take a screenshot of the current spreadsheet & then review if the updated spreadsheet is different from the screenshot with accurate updates.

If you have any other ideas for UAT let me know. This is one approach we can use.

clarkepeterf commented 3 months ago

Code to grab data version from a document:

fn.head(cts.doc(fn.head(sem.sparql(`
prefix la: <https://linked.art/ns/terms/>

SELECT DISTINCT ?objectIri WHERE {
  ?objectIri la:equivalent <http://vocab.getty.edu/ulan/500303558> ;
}
`)).objectIri).xpath('/admin/conversion-date')).toString()

There should always be a document(s) equivalent to Yale University in the LUX dataset

clarkepeterf commented 3 months ago

@gigamorph I have two questions for you:

  1. Could you add the ML host and port numbers used by each environment to https://tman-api-tst.collections.yale.edu/api/jenkins/versions/lux? (Or point me to the code so I can make that update?)
    1. Is there a place I can host a static html page to display this environment info?
roamye commented 2 months ago

Approved by UAT 9/27

roamye commented 2 months ago

Closing as this was implemented and the url works fine.