Comments (2)
The tileset API may disallow use of the slash and dot characters (cf. https://www.django-rest-framework.org/api-guide/routers/). This behavior could perhaps be changed by adding (untested):
lookup_value_regex = '[^.]+'
or similar to the TilesetsViewSet
class (cf. https://github.com/higlass/higlass-server/blob/develop/tilesets/views.py#L686).
A question might be whether this change in parsing would be a good thing to do, and I don't know the answer to that. Django API calls can use a file extension to specify MIME type (which uses a dot character), so playing with how the API parses URL slugs may not be desirable. Or there may be no side effects, as far as current and future API calls to tilesets are concerned. This is probably a better question for @pkerpedjiev. A typical UUID that follows specification will not contain period or forward slash characters and the API does not appear to expect to parse a slug and ignore those characters.
As workarounds until more discussion can be happen on that, you might replace dots with underscores or other delimiters in your custom UUIDs when ingesting tileset files, or perhaps use the management script to handle assets with these non-spec UUIDs, e.g.:
$ python manage.py delete_tileset --uuid="sim_02_sorted.ballele"
This modifies the underlying Django database through a different process, which does not involve parsing a REST request.
from higlass-server.
Discussion in this PR may be related: #85
from higlass-server.
Related Issues (20)
- link_tile returns a new uuid as a bytestring
- –_project-name_ parameter
- Delete/organize list entries from HiGlass.io HOT 7
- cooler vs clodius HOT 3
- Uids with the '.' character throw off the tiling logic.
- AWS-related tests appear to fail
- Adding track using fileURL to viewConfig gives error HOT 3
- app initialisation failing; cannot connect to upstream HOT 5
- Error with too many open files HOT 6
- Store tileset metadata separately from tileset data HOT 1
- Get tilesetuid given uuid HOT 6
- UI views not updated after tile deletion and reuplaod HOT 3
- import_tileset bigbed seen as bigwig HOT 6
- Screenshot HOT 10
- Update dependency versions
- Deleting Remote BigWig File Results in Error HOT 3
- Django DEFAULT_AUTO_FIELD warnings
- Pillow version 9 error HOT 2
- Installation errors on Red Hat 8 HOT 7
- ingest_tileset probably does not work with ftp HOT 1
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 higlass-server.