Share 
Follow 
AboutDownloadsDocumentsForumsSource CodeIssuesNews
Date:
2019-03-26 00:17
Priority:
4
State:
Closed
Submitted by:
Joy Ku (joyku)
Assigned to:
Henry Kwong (hykwong2012)
Target Release:
4.1.0
Status:
Testing complete
Summary:
[data share] Issues with metadata and indexing

Detailed description
There are a couple of issues with the metadata file parsing and indexing:

1) Any metadata that begins with the word “subject” (e.g., subject_id or subject_name) gets stripped down to “subject” in the query (e.g., both show up in query as just “subject”). This may need to be managed with both technical and instructional updates.

2) Any file name that contains the word metadata (e.g., OLDMetadata.xml) is assumed to contain metadata and folder is indexed using the information in those file(s). Change this so that only the file metadata.xml/.yml/.json is used for indexing.

3) Metadata files with only a single line (e.g., condition: loaded) were not being indexed previously. This bug needs to be verified to see if it is still a problem. If it is, please fix.

Add A Comment: Notepad

Message  ↓
Date: 2020-10-09 20:41
Sender: Joy Ku

Confirmed fixes for all three issues:

1) if subject_id and subject_name used as metadata, they both appear in query as subject_id and subject_name respectively

2) metadata files with the names OLDmetadata.yaml or metadata.v2.yaml were not picked up and used for indexing

3) YAML file with single line was parsed correctly

Date: 2020-10-02 19:42
Sender: Henry Kwong

- Fixed problem handling metadata attribute with "_id".
- Updated lookup of metdata files to be metdata.xml/.yml/.json.
- Handled YAML file containing attribute/value in one line
- Updated metadata descriptions in Import/Edit Data.

Field Old Value Date By
status_idOpen2021-01-05 20:41hykwong2012
close_dateNone2021-01-05 20:41hykwong2012
StatusReady for testing2020-10-09 20:41joyku
Target ReleaseNone2020-10-02 19:42hykwong2012
StatusImplementing2020-10-02 19:42hykwong2012
StatusAccepted2020-09-28 00:07hykwong2012
StatusNone2020-09-18 02:18hykwong2012
assigned_totod_hing2020-09-17 23:38hykwong2012
assigned_tonone2019-05-14 19:17tod_hing
Feedback