learninglocker icon indicating copy to clipboard operation
learninglocker copied to clipboard

Sending account details leave statements unviewable

Open jeongl opened this issue 12 years ago • 10 comments

Learning Locker version - 1.0.4

I started filling in account details and sending statements. After a statement is sent to the LRS in this configuration and the Statements tab is visited, the view is left in a 'bricked' state with only this last statement to be seen.

screen shot 2014-09-17 at 11 31 42 pm

Steps to reproduce the problem

Send this following JSON object - notice that this includes account details

{
    "id": "4fef15b5-c027-4d22-a59d-66159bd649a3",
    "timestamp": "2014-09-18T06:26:17.020Z",
    "actor": {
        "objectType": "Agent",
        "account": {
            "name": "test",
            "homePage": "http://example.com/activities/hang-gliding-test"
        },
        "name": "test"
    },
    "verb": {
        "id": "http://adlnet.gov/expapi/verbs/experienced",
        "display": {
            "en-US": "experienced"
        }
    },
    "object": {
        "id": "http://example.com/activities/hang-gliding-test",
        "objectType": "Activity"
    },
    "authority": {
        "name": "Verizon Learning Record Store",
        "mbox": "mailto:change",
        "objectType": "Agent"
    },
    "stored": "2014-09-18T06:26:17.275400+00:00"
}

The strange thing is that the view comes back after sending this following statement with an MBOX:

{
    "id": "d61f1d05-ca13-4e11-9f1a-43876684e028",
    "timestamp": "2014-09-18T06:26:22.087Z",
    "actor": {
        "objectType": "Agent",
        "mbox": "mailto:[email protected]",
        "name": "admin"
    },
    "verb": {
        "id": "http://adlnet.gov/expapi/verbs/experienced",
        "display": {
            "en-US": "experienced"
        }
    },
    "object": {
        "id": "http://example.com/activities/hang-gliding-test",
        "objectType": "Activity"
    },
    "authority": {
        "name": "Verizon Learning Record Store",
        "mbox": "mailto:change",
        "objectType": "Agent"
    },
    "stored": "2014-09-18T06:26:22.351700+00:00"
}

The last thing to note is that I noticed the broken views with account statements has a grey avatar, VS the blue (MBOX) after getting things to re-render.

screen shot 2014-09-17 at 11 29 59 pm

Is there something wrong with my statement or has anyone seem something like this?

Server information: MongoDB with Basic Authentication
Client information: Chrome Version 37.0.2062.120

jeongl avatar Sep 18 '14 06:09 jeongl

I'm seeing exactly the same thing with actors using account. I assumed it was one of my customisations gone wrong, but perhaps it's a core code bug.

garemoko avatar Sep 18 '14 06:09 garemoko

Hi there, can I check you are running the latest version? This is an issue we have seen before but it had been resolved.

If you could also refer to our issue guidelines (http://docs.learninglocker.net/contribute/) we'll be able to make a better assessment of the problem.

ht2 avatar Sep 18 '14 06:09 ht2

@garemoko, we had exactly the same issue due to account actors and a fix has been merged with master recently. I'll try and dig up the commit.

ht2 avatar Sep 18 '14 06:09 ht2

Thanks. I'll have to do an update from master at some point then.

garemoko avatar Sep 18 '14 06:09 garemoko

I believe it to be 1.0.4 - That's what's marked as my download folder I got from the main site. I don't see a .git folder in here, so I i'm not sure where this commit is and where it needs to be at this point.

jeongl avatar Sep 18 '14 06:09 jeongl

Unfortunately I don't believe there is a good way to tell the version you are running (would I be correct @ryansmith94?). However there have been a huge amount of updates since we released 1.0.4 (216 commits!) so I would suggest grabbing the latest master version of the repo.

ht2 avatar Sep 18 '14 08:09 ht2

@ht2 there is no good way to tell the version you are running as far as I'm aware. If you forked the Github repo obviously you can see which commit you're at, but that's it really (it's something we should probably think about).

ryasmi avatar Sep 18 '14 08:09 ryasmi

@jeongl thanks for reporting the issue, but can you please edit your initial comment (stating the issue) to follow our guidelines. We're trying to keep all of the issues on this repository consistent, thanks. Had you have followed the guidelines it would have been obvious that you were using an old version straight away since the guidelines require you to state the version of LL.

ryasmi avatar Sep 18 '14 08:09 ryasmi

@ryansmith94 - Thanks for the response! I have edited my initial comment and updated my learning locker repository.

The statements are being included into the LRS, but now I have another problem with graphs not being rendered correctly. Here is a screenshot. I will file another issue and reference it here.

#370 screen shot 2014-09-18 at 12 10 30 pm

jeongl avatar Sep 18 '14 19:09 jeongl

Thanks for editing it @jeongl! That looks great :smile: Thanks for creating a new issue for that other problem and referencing it here too, good work! :+1:

ryasmi avatar Sep 19 '14 08:09 ryasmi