Giter Club home page Giter Club logo

Comments (5)

agaurav avatar agaurav commented on May 23, 2024 1

yeah the 50 char limit has been frustrating, the search team has agreed to increase it to 256 but currently.

I was wondering if when we add the "hash" to the view name, that we also limit the name to no more than 50 characters

yes, this will be the ideal approach here for now. once the limit has been increased to 256 we can make the naming more human readable along with the hash suffix.

from slogen.

lswith avatar lswith commented on May 23, 2024

A workaround is to rename the SLO to "xxx-v2" to get it to repopulate the data

from slogen.

agaurav avatar agaurav commented on May 23, 2024

yeah this has been a known limitation of views.
i like the query hash idea, it will cause a one time recreation of existing scheduled views when released but I think its well worth it. let me discuss this with other and get back.

from slogen.

lswith avatar lswith commented on May 23, 2024

Awesome! One more thing to add to this:
The name of the SLO i.e. "api-ltc" will cause issues if it's too long because its directly used to name the scheduled view. This meant that when the view name i.e. "tf_slogen_view_api_ltc" becomes longer than 50 characters, it errors out.

I was wondering if when we add the "hash" to the view name, that we also limit the name to no more than 50 characters, regardless of what the SLO name is. This would mean that I could have something like "api-with-very-long-name-slo-ltc" and it would still work.

from slogen.

agaurav avatar agaurav commented on May 23, 2024

added --useViewHash flag to add a hash of the query as suffix.
By default the flag is false for preserving old behaviour without using the flag.

released in https://github.com/SumoLogic-Labs/slogen/releases/tag/v0.7.11

the view name char limit has also been increased to 255.

from slogen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.