CenterForDigitalHumanities / CenterForDigitalHumanities/deer-LR

LivedReligionExperiences Collection Encoding

Open
#229 1 comment 0 reactions 1 assignee Claimed by @cubap View on GitHub
bug
Dominant language
HTML
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

http://lived-religion.rerum.io/deer-lr/all_experiences.html is not working
http://lived-religion.rerum.io/deer-lr/manage_experiences.html is not working

```javascript
Uncaught (in promise) TypeError: Cannot read property '@id' of undefined
at app.js:246
```

It works on dev, so something is up specifically with the prod data. I still see my experiences on my dashboard.
OO I see
```javascript
{
@type: "Event"
itemListElement: (6) [{…}, {…}, {…}, {…}, {…}, {…}]
name: "LivedReligionExperiencesTest"
}

{
itemListElement: []
name: "LivedReligionExperiences"
}
```
As for app.js
`LR.ui.experiences = new Set(list.itemListElement['@id'])`

but list is

```javascript
@id: "http://store.rerum.io/v1/id/60831f5811aeb54ed01e8ccb"
@type: "listElement"
```
I had to roll back.

So the real issue seems to be the difference between http://devstore.rerum.io/v1/id/6081ee59a0e7066822d87e6c and http://store.rerum.io/v1/id/60831f5811aeb54ed01e8ccb. We need to make the prod one up to date to include the Experiences that already exist and to have the same encoding schema as the dev one (notice there is no context, name, numberOfItems or itemListElements)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.