Comments (5)
@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.
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.
👍
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.
-
invenio-access
- used inpermissions.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.
@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)
- new default location should remove previous "default" ones.
- cli: support to remove locations
- cli: list locations
- Make command line Location creation idempotent
- Remove support for Python 2 (clearly) HOT 1
- global: fix build failure
- models: use "passive_deletes=True" for cascading deletes
- global: make a new minor release HOT 1
- Remove SQLAlchemy-Utils dependency.
- Document the use of `FILES_REST_XSENDFILE_ENABLED` HOT 1
- Nginx files offloading should be done on a per-backed basis
- Design question — multiple storage backends or locations HOT 1
- global: migrate CI to gh-actions
- tests: test_simple_workflow failing in CI
- Send signal with a sender for upload, delete and download actions
- Wrong mime type returned for .ttl files HOT 2
- fs>=0.5.4,<2.0 with setuptools>=58.0.0 HOT 3
- views: fix X-Accel should be sent from storage class not from the view HOT 2
- views: add config variable for enabling/disabling `/api/files` blueprint registration
- The `clear_orphaned_files` task cannot be scheduled like the documentation says
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from invenio-files-rest.