question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow modelKey to be a nested field

See original GitHub issue

I am trying to migrate my existing project from lounge to ottoman, but my existing project stores type in a meta object. Since this is a nested field, I’m not currently able to set modelKey to meta.type without getting a Couchbase InternalServerFailureError. I would issue a pull-request, but I would need some help on where to get started with this change. I’m not sure how difficult it would be. Thanks.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
docemecommented, Apr 6, 2022

Hi @AV25242. Yes, we are currently in the process of migrating from lounge to ottoman using version 2.2.0. We haven’t hit any show-stoppers yet. Thanks!

1reaction
docemecommented, Mar 2, 2022

Hello @AV25242, thanks for your consideration of this request. I understand that ottoman creates a GSI to handle the model.find operations and I’m okay with that. We currently have a GSI for meta.type lookups that we created, but I imagine it would get replaced with the ottoman created one after the transition. I am completely okay with modelKey being immutable and would expect it to be. I think limiting the nesting depth of the modelKey is perfectly reasonable. We don’t currently have any plans to migrate away from using the _default scope/collection, but I believe I understand the implications if we do down the road.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Component Nested Object · Issue #2172 · ngx- ...
I've checked your documentation for Custom Templates https://formly.dev/guide/custom-formly-field However I have no idea how to create more ...
Read more >
Nested field type | Elasticsearch Guide [8.5]
The nested type is a specialised version of the object data type that allows arrays of objects to be indexed in a way...
Read more >
Use rails nested model to *create* outer object and ...
I'm using Rails 3.2.8 and running into the exact same problem. It appears that what you are trying to do (assign/update an existing...
Read more >
API (GraphQL) - Add relationships between types - Amplify Docs
Relationships between types are specified by annotating fields on an @model ... Note how a one-to-many connection needs an @key that allows comments...
Read more >
ModelParametersSchemaV3 (h2o-core version 3.10.0.3 API) - AWS
Nested classes/interfaces inherited from class water.api.schemas3. ... A model key associated with a previously trained model. Distribution.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found