https://avo.cool logo
Join Discord
Powered by
# avo-2
  • d

    delightful-beach-23533

    09/12/2022, 2:48 PM
    Something I can't find in the docs, is there a way to override the find_by method. Currently it is trying to do a find_by(id: x) but I want it to do a find_by_uuid(x) instead
    l
    • 2
    • 2
  • d

    delightful-beach-23533

    09/12/2022, 4:10 PM
    Sorry for the flood of messages! I now trying to work out a way to create a custom controller/view to be able to use to add a custom form, that is not connected to active record model. How would I go about doing this?
  • l

    lemon-wall-20836

    09/12/2022, 4:10 PM
    Check out custom tools please
  • l

    lemon-wall-20836

    09/12/2022, 4:10 PM
    Iโ€™m AFK now
  • s

    strong-restaurant-36788

    09/12/2022, 4:25 PM
    @lemon-wall-20836 or @loud-jewelry-99127 have you all documented the release cycle? I remember Adrian said it in a video somewhere, but it's not clear when releases are occurring. I'm less worried about big features, but when there are small bugfixes (that limit the ability to upgrade to newly released features) two weeks seems like a long time to wait for new gem to be cut.
    l
    • 2
    • 19
  • s

    strong-restaurant-36788

    09/12/2022, 4:25 PM
    Not complaining, just wondering.
  • l

    lemon-wall-20836

    09/12/2022, 5:25 PM
    Release schedule
  • d

    delightful-beach-23533

    09/15/2022, 3:15 AM
    Hi, I am trying to use the trix editor for adding comments to a resource, but am getting this error when trying to add images to a comment "You can't upload files into the Trix editor until you save the resource.",
    l
    • 2
    • 4
  • l

    lemon-wall-20836

    09/15/2022, 6:34 AM
    Trix and active storage on a new record
  • l

    loud-jewelry-99127

    09/15/2022, 6:58 AM
    Hello! Someone speaks Norwegian? I need your help to translate 2 words (i don't trust google translate =))) )
    • 1
    • 2
  • l

    loud-jewelry-99127

    09/15/2022, 7:05 AM
    BTW, someone who speaks French can confirm if this is well translated please?
    • 1
    • 2
  • b

    bright-tomato-27372

    09/15/2022, 1:40 PM
    Not having much luck in searching the docs for the best solution for this ๐Ÿ˜“ Anyone know of the best way to filter records (like on the index pages) based on the current_user? For example, I have multiple users (that have a company_id) and I want the logged in users to only see the
    Product.where(company_id: current_user.company_id
    on their resource index page. Is using Pundit the way to do that? Going to keep looking through docs since I know it's somewhere there ๐Ÿ˜Š
    l
    t
    • 3
    • 30
  • w

    wooden-pizza-89220

    09/16/2022, 6:05 PM
    Hello, my company is still rather new to Avo, so our actions for our different services have been fairly straight forward. I am trying to create several fields on one Avo Resource that will write to a join table on the DB on a successful update. I was wondering if anyone's done this before and if you: created a custom handler on the Active Record model, created a handler on the Avo Resource itself, or something else. To give a rough idea of what my data looks like, I attached an ERD
  • b

    blue-hospital-77159

    09/18/2022, 8:16 PM
    Hey all, having a weird issue when searching resources. The endpoint Avo tries to access when searching a resource is built like so: http://app.lvh.me:3000/http://my.app.lvh.me:3000/staff/avo_api/users/search?q=test&global=false Both app.lvh.me and my.app.lvh.me are valid domains locally as I have subdomains setup. Has anyone come across this? Is it some config I'm overlooking? I'm not sure how Avo is building the URL to be like so. The expected endpoint would be: http://app.lvh.me:3000/staff/avo_api/users/search?q=test&global=false And it works when I access it that way.
    l
    • 2
    • 24
  • l

    lemon-wall-20836

    09/19/2022, 9:18 AM
    Search path issue
  • l

    late-cartoon-17585

    09/20/2022, 11:59 AM
    Is it possible to know the current context when running actions? I'd like to run actions in the current state, for example: if the action is ran in the edit view, I want to know what is being shown currently (or the filter/query being applied). Also, if I'm filtering using filters, I'd like to have that filter as well inside the action.
  • t

    tall-ghost-95744

    09/20/2022, 2:45 PM
    The file control buttons disappeared on my app and I'm not sure what could have done that.
    l
    • 2
    • 4
  • l

    late-cartoon-17585

    09/20/2022, 2:50 PM
    Is it possible to have a configuration for filters or actions? Like parameters when registering it to a resource. For example, I'd like to have a filter which I would pre-configure the fields I want to be filtering. Also, an action that will execute some procedures on specific columns only (custom tailored for each resource)
    l
    • 2
    • 4
  • w

    wooden-pizza-89220

    09/21/2022, 6:33 PM
    Hello, I am trying to do something React-like with a Resource tool. I want to render this custom tool only when another field has been selected. Would I use the
    visible
    block for this?/Is it possible?
  • w

    wooden-pizza-89220

    09/22/2022, 4:59 PM
    Hello, I am having trouble with the
    extra_params
    in the custom Resource Tool. The extra parameters I'm sending in the
    :create
    are not ones being saved on my database, but rather, getting JSON-ified in order to send to an AWS Secrets Manager. In my Resource tool, I have
    Copy code
    self.extra_params = [{
        the_secrets: %i[some_key some_token some_provider_id some_account_id]
    }]
    Then, like the docs say, I have a method in my model to parse the hash I'm receiving from `the_secrets`:
    Copy code
    def handle_secrets=(value)
      @those_secrets = value.to_json
    end
    The issue is, the
    extra_params
    method seems to be conflicting with the other permit I have for the required params needed for AWS (let's just say they're
    :name, :type, :id
    ). I'm seeing two warnings for
    Unpermitted parameters
    with different values. Only one includes
    the_secrets
    hash I created. Does anyone know why this could be happening? https://docs.avohq.io/2.0/resource-tools.html#add-custom-fields-on-forms
    l
    • 2
    • 13
  • l

    lemon-wall-20836

    09/22/2022, 5:46 PM
    Resource tools | Avo docs
  • q

    quaint-pencil-2979

    09/28/2022, 8:51 PM
    Hello do you guys have missing assets in the new version? ActionController::RoutingError (No route matches [GET] "/avo-assets/avo.js"):
    l
    • 2
    • 9
  • r

    ripe-article-50191

    09/29/2022, 9:24 AM
    Hi everybody. I have a problem with AVO turbo-rails. In one page for new model I need to eject AVO head in order to load with esbuild my own javascript an css. and if I include the standar
    stylesheet_link_tag
    and
    javascript_include_tag
    the AVO javascript doesn't work and I have the next message in console:
    DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "turbo-frame" has already been used with this registry
    l
    • 2
    • 7
  • r

    ripe-article-50191

    09/29/2022, 9:25 AM
    The problem appears to be that my application is trying to load turbo-rails 2 times, and here is the problem, but I am unable to solve it. Any idea?
  • r

    ripe-article-50191

    09/29/2022, 9:29 AM
    Hi Adrian... if you can help me I will be very grateful...
  • l

    lemon-wall-20836

    09/29/2022, 9:29 AM
    I wrote above in the thread ๐Ÿ‘†
  • r

    ripe-article-50191

    09/29/2022, 9:32 AM
    Ok, I am going to view the video
  • r

    ripe-article-50191

    09/29/2022, 10:31 AM
    Adrian. I have seen the video. The first step for has been to upgrade to 2.16.0 version, because I was on 2.13.1
  • r

    ripe-article-50191

    09/29/2022, 10:48 AM
    I have understood the process and I have applied to my app. I have some issue more 1. - I have app/javascript/js/my_custom.js 2. - In avo.custom.js, I have added
    import './js/my_custom.js
    3. - In browser sources tool I am able to see localhost:3000>assets>avo.custom-blahblah1234.js 4. - In this .js file I can see my custom functions
    function my_function(){...}
    but if in my custom new file
    <script>my_fucntion()</script>
    doesn't works. In fact, the console prints
    Uncaught ReferenceError: my_function is not defined
    Any idea?
    l
    • 2
    • 70
  • r

    ripe-monitor-54023

    09/29/2022, 4:49 PM
    Hi, I'm new here. First of all: great work on improving admin panel options with well designed and extendable product. I would love to give Avo a try in near future. I have two questions: - are you planning to add static license option to support hosts that are not connected to internet (and updating firewall rules is not an option)? - is there a tree component included with Avo - sth that allows to work (crud) with single table hierarchical structures (like category trees)?
    l
    • 2
    • 6
1...464748...64Latest