Comments (9)
For limit we have to ensure that no project out there has a bone named limit - that name must then be reserved. For getEntry and getSkel i think they're correctly named - getSkel returns the structure of that skeleton, getEntry an Entity from the datastore..
from viur-core.
@tsteinruecken please let us discuss this in a ViUR round. I think it won't be a problem to forbid naming bones "limit" - I think I have one project where this is the case, so a renaming won't be a problem. And its important to make ViUR more convenient with its namings in several places.
from viur-core.
Here's another one: In List-prototypes and their specific renderer functions, there called:
self.render.editItemSuccess(skel)
self.render.addItemSuccess(skel)
self.render.deleteSuccess(skel)
???
why not deleteItemSuccess(), or why not editSuccess(), addSuccess() and deleteSuccess() to all??
from viur-core.
For the last comment, thinking more over it, why can't we call them just "edit", "add" and "delete" same as the actions they do?
My proposal is to rename this
- edit => self.onItemEdited(skel) => self.render.editItemSuccess(skel)
- add => self.onItemAdded(skel) => self.render.addItemSuccess(skel)
- delete => self.onItemDeleted(skel) => self.render.deleteSuccess(skel)
into this:
- edit => self.onEdit(skel) => self.render.editSuccess(skel)
- add => self.onAdd(skel) => self.render.addSuccess(skel)
- delete => self.onDelete(skel) => self.render.deleteSuccess(skel)
from viur-core.
I have new input for this!
Variants of relationalBone have misleading names
Problem
Why are specialized versions of relationalBone not correctly sub-classed... treeDirBone(), treeItemBone(), fileBone()
See here...
Proposal
treeDirBone()
indicates itself asrelational.treedir
, should berelational.tree.node
treeItemBone()
indicates itself asrelational.treeitem
, should berelational.tree.leaf
and renamed intotreeLeafBone()
... it makes then sense to provide atreeItemBone()
which is justrelational.tree
to select both nodes and leafs...fileBone()
indicates itself astreeitem.file
??????, should berelational.tree.leaf.file
hierarchyBone()
indicates itself as justrelational
without speciality - IMHO this can be removed entirely and replaced by relationalBone().
from viur-core.
Hi, I've reopened this again because it collects several issues. #39 was the first part. More will follow.
from viur-core.
I'd updated the initial comment in this issue. Please be patient for further pull requests that resolve all the issues as discussed in ViUR discussion from June 26.
from viur-core.
getSkel(), getEntry() proposal resolved by #48
from viur-core.
#49 fixes misleading relationalBone names
from viur-core.
Related Issues (20)
- Extend `DateBone` to allow for time values with microseconds
- Implement more second factors
- Fix securitykey header
- SEO-Features not working properly with umlauts HOT 1
- Replace `str.replace`-cascades by `str.translate` calls
- `conf["viur.email.transport"]` with class instances for custom adapter configuration
- 2nd factor login wishlist HOT 1
- Derives for FileBones not working in RelSkels HOT 1
- Make the second factor selectable. A user should not be forced to use the first one. HOT 2
- Funny `skey=123` generates error 500
- use shoelace icons for custom actions HOT 1
- `"self"` should be used explicitly as key in `/user/edit` and `/user/view`
- templates are missing in 3.5 RCs HOT 1
- core 3.5.0rc3 does not deliver the requirements.txt anymore HOT 2
- Moving elements in a tree is broken
- Pre-defined RequestPreprocessors for everyday ViUR development HOT 1
- Unreachable Code in skeleton.py HOT 4
- Derives are not being build with weak relations
- Merge ViUR Importables into Core HOT 1
- Add dependabot configuration
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 viur-core.