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

    lemon-wall-20836

    06/11/2021, 8:16 PM
    apologies for the inconvenience
  • b

    blue-hospital-77159

    06/11/2021, 8:17 PM
    No worries at all, happens. Updating.
  • b

    blue-hospital-77159

    06/11/2021, 8:17 PM
    All good now. Thanks again!!
  • l

    lemon-wall-20836

    06/11/2021, 8:17 PM
    for sure!
  • d

    delightful-sugar-45580

    06/21/2021, 3:40 PM
    @User is possible make the search/ransack an optional requirement? im having compatibility issues with elasticsearch-rails gem.
  • l

    lemon-wall-20836

    06/21/2021, 6:18 PM
    Hey @delightful-sugar-45580. Not right now but we can certanly look into it
  • l

    lemon-wall-20836

    06/21/2021, 6:19 PM
    What exactly is the issue? That the gem as a requirement or the actual inputs?
  • d

    delightful-sugar-45580

    06/21/2021, 6:20 PM
    both gems add method search in models
  • l

    lemon-wall-20836

    06/21/2021, 6:21 PM
    Got it
  • l

    lemon-wall-20836

    06/21/2021, 6:22 PM
    So removing the ransack gem from Avo’s dependencies should fix it
  • d

    delightful-sugar-45580

    06/21/2021, 6:28 PM
    i think ransack can be a optional features "add this gem if u want this features"
  • l

    lemon-wall-20836

    06/21/2021, 6:28 PM
    Yeah. That’s what I was thinking too
  • l

    lemon-wall-20836

    06/23/2021, 9:03 AM
    we created this ticket to track this request https://github.com/avo-hq/avo/issues/441
  • l

    lemon-wall-20836

    06/23/2021, 9:26 PM
    Fixed in 1.10 💪
  • a

    alert-policeman-73141

    06/28/2021, 9:40 PM
    Hello! Does anybody have any recommendations for how I can filter the options in a
    HasAndBelongsToManyField
    ? I tried creating a custom field which inherits from this field but ran into some issues. Is there a different recommended approach to this problem? I can elaborate on what I ran into with the custom field approach if that would help.
  • l

    lemon-wall-20836

    06/29/2021, 9:32 AM
    Hi @User. Not sure I understand what are the "options" 👆
  • l

    lemon-wall-20836

    06/29/2021, 9:32 AM
    do you mean the records that you get in that relation?
  • a

    alert-policeman-73141

    06/29/2021, 2:39 PM
    Yes exactly. The records that get shown in the dropdown when you click "attach" in the Avo ui.
  • a

    alert-policeman-73141

    06/29/2021, 2:51 PM
    I want to filter the contents of this dropdown
  • l

    lemon-wall-20836

    06/29/2021, 2:57 PM
    oh. ok
  • l

    lemon-wall-20836

    06/29/2021, 2:57 PM
    I got it
  • l

    lemon-wall-20836

    06/29/2021, 2:58 PM
    you can't filter that list by itself
  • l

    lemon-wall-20836

    06/29/2021, 2:59 PM
    you can, however, apply a scope to a resource using custom query scopes
  • l

    lemon-wall-20836

    06/29/2021, 2:59 PM
    https://docs.avohq.io/1.0/customization.html#custom-query-scopes
  • l

    lemon-wall-20836

    06/29/2021, 2:59 PM
    those might influence that list. not sure
  • l

    lemon-wall-20836

    06/29/2021, 3:02 PM
    I just tested it out
  • l

    lemon-wall-20836

    06/29/2021, 3:02 PM
    it's not influenced by that query scope
  • l

    lemon-wall-20836

    06/29/2021, 3:03 PM
    I'll create an issue and tag it "good first issue". if anyone wants to pick it up: much ❤️
  • l

    lemon-wall-20836

    06/29/2021, 3:17 PM
    https://github.com/avo-hq/avo/issues/455 for this 👆
  • l

    lemon-wall-20836

    06/29/2021, 3:18 PM
    I included guidance on how that could be done
1...101112...64Latest