Giter Club home page Giter Club logo

Comments (5)

nharraud avatar nharraud commented on June 2, 2024 1

@lnielsen I meant removing it from the ext.py file in invenio-files-rest, not removing the function which is in invenio-records-files. If we move file_download_ui to invenio-records-files it can directly use the function instead of using a config variable.

from invenio-files-rest.

nharraud avatar nharraud commented on June 2, 2024

I don't see any issue with that.
It seems that the only change which this would require would be to change the config:

RECORDS_UI_ENDPOINTS = dict(
            recid=dict(
                # ...
                route='/records/<pid_value/files/<filename>',
                view_imp='invenio_files_rest.views.file_download_ui',
                record_class='invenio_records_files.api:Record',
            )
        )

Changed with

- view_imp='invenio_files_rest.views.file_download_ui',
+ view_imp='invenio_records_files.views.file_download_ui',

Do we need to keep record_file_factory at all? It seems that it is only used by file_download_ui.

In case somebody wants to use a different record_file_factory they can at the same time provide their own file UI endpoint as it means that there is probably not a 1 record -> 1 bucket relation anymore.

from invenio-files-rest.

lnielsen avatar lnielsen commented on June 2, 2024

👍

Would make Files-REST more clean. @nharraud I would still keep record_file_factory (which is anyway already located in Records-Files).

from invenio-files-rest.

jirikuncar avatar jirikuncar commented on June 2, 2024
  • invenio-access - used in permissions.py - named tuple + flask_security.Permission when Invenio-Access is not installed
  • invenio-accounts easy to remove after Invenio-Access is out

from invenio-files-rest.

topless avatar topless commented on June 2, 2024

@lnielsen after our discussion I believe this one can be closed, the removal of invenio-access is not easy or feasible.

from invenio-files-rest.

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.