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

    lemon-wall-20836

    10/04/2021, 5:50 PM
    about 5 months agos 🙂
  • l

    lemon-wall-20836

    10/04/2021, 5:50 PM
    https://github.com/avo-hq/avo/commit/1b4c0f846487ab73217ae0bd50b518a16fff0dcc#diff-7b13d8a325b2a092e6a11966d3ea9456c4c4c14bbf6e484b472fde4cbbde04c3R70
  • a

    alert-policeman-73141

    10/04/2021, 6:00 PM
    Seems like we might have made this just before this PR was put in. Well now we know, thanks for all the info!
  • l

    lemon-wall-20836

    10/04/2021, 6:00 PM
    for sure!
  • d

    dazzling-kite-85871

    10/08/2021, 6:36 PM
    Is there a way to supply a different name for pundit scopes just like there is a way to change the
    authorization_methods
    name? In our app a lot of models have a scope that limits the data to the customer_id that is logged in, but in our admin portal, users should be able to see records from all customers. I know that there is the
    self.unscoped_queries_on_index = true
    method, but currently that doesn't seem to help on
    show
    actions?
  • l

    lemon-wall-20836

    10/09/2021, 11:25 AM
    Hmm, not at the moment @User
  • l

    lemon-wall-20836

    10/09/2021, 11:25 AM
    that's not a bad idea though
  • l

    lemon-wall-20836

    10/09/2021, 11:26 AM
    we're open to support that
  • l

    lemon-wall-20836

    10/09/2021, 11:31 AM
    how would you implement that. I couldn't find any examples online?
  • h

    helpful-microphone-19711

    10/14/2021, 4:25 PM
    Would it be possible to use policies or resource configuration to modify which buttons are displayed when attachments are viewed? Right now, when a user has the
    show?
    permission but NOT the
    edit?
    or
    update?
    permission for a resource that has an attachment, they're given the option to delete the attachment. I'd like to prevent that button from showing unless they have one or both of those permissions.
  • h

    helpful-microphone-19711

    10/14/2021, 4:26 PM
    Of lesser importance: I don't necessarily want to show the button to download the attachment. I'd like to have control over when this is displayed, but not a huge deal!
  • l

    lemon-wall-20836

    10/14/2021, 5:58 PM
    yeah
  • l

    lemon-wall-20836

    10/14/2021, 5:58 PM
    that makes sense
  • l

    lemon-wall-20836

    10/14/2021, 5:58 PM
    I guess we could use the policies to do that, right?
  • l

    lemon-wall-20836

    10/14/2021, 5:59 PM
    add other policy methods like
    download_attachments?
    destroy_attachments?
  • l

    lemon-wall-20836

    10/14/2021, 6:00 PM
    would that help @User 👆
  • h

    helpful-microphone-19711

    10/14/2021, 6:31 PM
    @lemon-wall-20836 that would be perfect!
  • l

    lemon-wall-20836

    10/14/2021, 7:24 PM
    Hmm. Sounds good
  • l

    lemon-wall-20836

    10/14/2021, 7:25 PM
    I’ll have something ready start of next week.
  • l

    lemon-wall-20836

    10/17/2021, 4:17 PM
    Hey @User. The files authorization methods landed in
    1.14
    https://docs.avohq.io/1.0/authorization.html#upload-attachments
  • h

    helpful-microphone-19711

    10/18/2021, 3:30 PM
    @User amazing! Thank you so much. Will give it a spin soon.
  • l

    lively-kitchen-58021

    10/26/2021, 1:48 PM
    Hello!! Is there any way to specify on gemfile to use any AVO branch directly from github? I'm trying to test the changes on 'fix/uncountable-model-names' to see if it works on my project, but i'm getting the following error:
  • l

    lively-kitchen-58021

    10/26/2021, 1:48 PM
    Copy code
    ActionView::Template::Error (Manifester can't find application.js in /usr/share/rvm/gems/ruby-2.7.2/bundler/gems/avo-b054caac4769/lib/../public/avo-packs/manifest.json.
    Your manifest contains:
    {
    }
    ):
         9:   <%= render partial: 'avo/partials/javascript' %>
        10:   <%= render partial: 'avo/partials/head' %>
        11: 
        12:   <%= javascript_manifest_tag 'application' %>
        13:   <%= stylesheet_manifest_tag 'application', media: 'all' %>
        14: </head>
        15: <body class="bg-blue-gray-200">
  • l

    lemon-wall-20836

    10/26/2021, 1:49 PM
    hey there
  • l

    lemon-wall-20836

    10/26/2021, 1:49 PM
    you can't use it from github directly
  • l

    lemon-wall-20836

    10/26/2021, 1:49 PM
    it needs to be built to have the assets packed
  • l

    lemon-wall-20836

    10/26/2021, 1:49 PM
    I published a special version on that PR
  • l

    lemon-wall-20836

    10/26/2021, 1:50 PM
    gem 'avo', '1.15.0.pre.1'
  • l

    lemon-wall-20836

    10/26/2021, 1:50 PM
    I wrote it on the PR
  • l

    lemon-wall-20836

    10/26/2021, 1:51 PM
    add this to your Gemfile
    gem 'avo', '1.15.0.pre.1'
1...161718...64Latest