Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyValyues seems to have gone missing #1342

Closed
kzangeli opened this issue Mar 17, 2023 · 4 comments
Closed

keyValyues seems to have gone missing #1342

kzangeli opened this issue Mar 17, 2023 · 4 comments
Assignees
Labels
invalid This doesn't seem right Need more input

Comments

@kzangeli
Copy link
Collaborator

On behalf of sjerman:

OK, here's another - which looks like a regression...

    environment:
      - ORIONLD_EXPERMENTAL=TRUE
      - ORIONLD_MONGOCONLY=TRUE

With: fiware/orion-ld:1.1.2

Steves-MacBook-Pro:fiware-test sjerman$  curl 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:barn002?options=keyValues'   -H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' | jq .
{
  "id": "urn:ngsi-ld:Building:barn002",
  "type": "Building",
  "category": "barn",
  "address": {
    "streetAddress": "Straße des 17. Juni",
    "addressRegion": "Berlin",
    "addressLocality": "Tiergarten",
    "postalCode": "10557"
  },
  "location": {
    "type": "Point",
    "coordinates": [
      13.3698,
      52.5163
    ]
  },
  "name": "Big Red Barn",
  "owner": "urn:ngsi-ld:Person:person001"
}

With fiware/orion-ld:1.2.0-PRE-1296:

Steves-MacBook-Pro:fiware-test sjerman$  curl 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:barn002?options=keyValues'   -H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' | jq .
{
  "id": "urn:ngsi-ld:Building:barn002",
  "type": "Building",
  "category": {
    "type": "Property",
    "value": "barn"
  },
  "address": {
    "type": "Property",
    "value": {
      "streetAddress": "Straße des 17. Juni",
      "addressRegion": "Berlin",
      "addressLocality": "Tiergarten",
      "postalCode": "10557"
    },
    "verified": {
      "type": "Property",
      "value": true
    }
  },
  "location": {
    "type": "GeoProperty",
    "value": {
      "type": "Point",
      "coordinates": [
        13.3698,
        52.5163
      ]
    }
  },
  "name": {
    "type": "Property",
    "value": "Big Red Barn"
  },
  "owner": {
    "type": "Relationship",
    "object": "urn:ngsi-ld:Person:person001"
  }
}

Note that keyValue doesn't seem to have an effect.

@kzangeli kzangeli self-assigned this Mar 17, 2023
@kzangeli kzangeli added the bug Something isn't working label Mar 17, 2023
@kzangeli
Copy link
Collaborator Author

kzangeli commented Mar 17, 2023

I created a functest (actually 3 functests) for this and it works just as it should (options=keyValues is taken into account).
I'm gonna need some more info, as I'm not able to reproduce.

I tested with all three "output format options (keyValues/simplified + concise + normalized).
I also started the broker in three different ways: (-mongocOnly, -experimental, ).

All good, so, more info needed.

@kzangeli kzangeli added invalid This doesn't seem right Need more input and removed bug Something isn't working labels Mar 17, 2023
@sjerman
Copy link

sjerman commented Mar 22, 2023

I'll will check .. it may have been related to my learning curve :)

@sjerman
Copy link

sjerman commented Mar 31, 2023

can close this.

@kzangeli
Copy link
Collaborator Author

Ok, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right Need more input
Projects
None yet
Development

No branches or pull requests

2 participants