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.

Small tweaks to catalog

See original GitHub issue

[x] 1. Return slug at every object with slug. For example, Dataset.slug doesn’t work but it appears at dataset.to_dict. We talked about removing slug for the model but I’m regretting it after I’ve played a little bit with the library.

[x] 2. Dataset.to_dict(): remove summary_jsonb.

[x] 3. Rename Catalog to CatalogDataset

[ ] 4. Custom __repr__ for Variable objet.

image

That would be great to include only for Variable object the description fields at the repr.

For longer description (bigger than 20 characters let’s add an ellipsis.

<Variable(‘CRMCYPERC_1a97ab94’, ‘My cool short description’)> <Variable(‘CRMCYPERC_1a97ab94’, ‘My cool long description bla bla bla …’ )>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
alasarrcommented, Oct 14, 2019

I assume we want that for all entities with a summary_jsonb field (like Variable or Geography), don’t we @alasarr ?

Yes, but only for to_dict the property should be available for describe

1reaction
eslohocommented, Oct 14, 2019
  1. Return slug at every object with slug. For example, Dataset.slug doesn’t work but it appears at dataset.to_dict. We talked about removing slug for the model but I’m regretting it after I’ve played a little bit with the library.

I finally added the slug property at #1093 since I needed it for the CatalogList.get(slug) to work 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Small Businesses Can Create Cheap Catalogs
Creating a presentable catalog may seem overwhelming and costly, but it doesn't have to be as challenging or expensive as you may think....
Read more >
Small Tweaks to In-Stock Parts Has Endless Possibilities
Making merchandising easy is what we love to do! Your Point of Purchase (POP) displays can bring in new and loyal customers!
Read more >
5 Clever Google Search Tweaks - Fluxe Digital Marketing
There are actually little tweaks you can do to your everyday Google searches that will not only get you way better results, but...
Read more >
5 small website tweaks that will help you sell more products ...
With some small website tweaks you can help all the lovely people looking for ... product categories that cover the top-level of your...
Read more >
Hire Shopify Small Tasks or Tweaks Experts-Shopify Task Help
Let our experts help you with theme tweaks, adding functionality, custom coding, graphics and other Shopify small tasks. Browse Task Catalog.
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