Coder Social home page Coder Social logo

Comments (9)

tsteinruecken avatar tsteinruecken commented on June 5, 2024

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.

phorward avatar phorward commented on June 5, 2024

@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.

phorward avatar phorward commented on June 5, 2024

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.

phorward avatar phorward commented on June 5, 2024

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.

phorward avatar phorward commented on June 5, 2024

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 as relational.treedir, should be relational.tree.node
  • treeItemBone() indicates itself as relational.treeitem, should be relational.tree.leaf and renamed into treeLeafBone()
    ... it makes then sense to provide a treeItemBone() which is just relational.tree to select both nodes and leafs...
  • fileBone() indicates itself as treeitem.file??????, should be relational.tree.leaf.file
  • hierarchyBone() indicates itself as just relational without speciality - IMHO this can be removed entirely and replaced by relationalBone().

from viur-core.

phorward avatar phorward commented on June 5, 2024

Hi, I've reopened this again because it collects several issues. #39 was the first part. More will follow.

from viur-core.

phorward avatar phorward commented on June 5, 2024

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.

phorward avatar phorward commented on June 5, 2024

getSkel(), getEntry() proposal resolved by #48

from viur-core.

phorward avatar phorward commented on June 5, 2024

#49 fixes misleading relationalBone names

from viur-core.

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.