Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leftovers from 2.0 #391

Closed
12 of 47 tasks
bajtos opened this issue Jul 22, 2014 · 11 comments
Closed
12 of 47 tasks

Leftovers from 2.0 #391

bajtos opened this issue Jul 22, 2014 · 11 comments

Comments

@bajtos
Copy link
Member

bajtos commented Jul 22, 2014

List of leftovers from #276.

  • trackChanges should be well documented (remove from Model)
  • remove global modelBuilder
  • remove loopback.createModel() in favor of Model.extend()
  • rename DataModel to PersistedModel
  • remove unused explorer - see Remove app.docs() #392
  • remove DataModel mixins in favor of simple delegation
  • DataModel methods should delegate to the dataSource directly
  • refactor DataModel#replicate() into Replication class.
  • refactor DataModel#bulkUpdate() into BulkUpdate class.
  • refactor DataModel#diff() into Diff class.
  • remove Model autoAttach
  • password should be validatable
  • docs for any class should include any available method (eg. inherited / mixed-in / etc)
  • tests should not share any objects (eg. create a new app / modelBuilder for all tests)
  • karma tests should run in ci
  • beef up CHANGES.md
  • create upgrade guide 1.x => 2.x
  • remove app.remoteObjects()
  • move memory connector filtering into its own module
  • rename ACL => AccessControl and options.acls to options.acl.
  • remove sharedCtor and remoted prototype methods (probably not - see sharedCtor not working - examples borked strong-remoting#73)
  • document model.settings.remoting / remoting options
  • document base URL setting for models
  • all URLs should be lowercase / dasherized (both configurable)
  • groundwork for allowing ACL to provide route names
  • groundwork for allowing non-model remote classes (eg. Resource and/or Controller)
  • groundwork for supporting promises via remoting
  • groundwork for supporting promises for DataModel methods
  • migrate app.boot() into its own separate module
  • migrate ACL into its own separate module
  • groundwork for removing remoting metadata from JS
  • groundwork for removing juggler as a dependency (Get rid of peer dependency on loopback-datasource-juggler #275)
  • remove or properly impelment "property" from ACL

List of issues assigned to 2.0 milestone but not implemented in 2.0:

@bajtos bajtos added this to the 2.0.0 milestone Jul 22, 2014
@bajtos
Copy link
Member Author

bajtos commented Jul 22, 2014

autoAttach cannot be removed while supporting 1.x project layout - see the comment in strongloop/loopback-boot#25.

@fabien
Copy link
Contributor

fabien commented Jul 23, 2014

Re: remove sharedCtor and remoted prototype methods

@bajtos I urge you to not drop remoted prototype methods, as discussed before. It is in heavy use whenever you want to add functionality in a sensible manner, I can assure you. Why even consider dropping this?

@altsang I thought we arrived at 2.0 yesterday, yet there's still some breaking changes listed here? What's the final ETA?

@bajtos bajtos changed the title 2.0 TODO Leftovers from 2.0 Jul 23, 2014
@bajtos
Copy link
Member Author

bajtos commented Jul 23, 2014

@fabien I apologize for the confusion. 2.0 has definitely arrived and there won't be any breaking changes until 3.0.

This GH issue lists items there were mentioned in #276 (the pull request for 2.0 branch). My intention was to move them to a place where they are easy to find, then review them and decide which of them are still relevant. I have renamed the issue from "2.0 TODO" to "Leftovers from 2.0" to make this more clear.

@bajtos I urge you to not drop remoted prototype methods, as discussed before. It is in heavy use whenever you want to add functionality in a sensible manner, I can assure you. Why even consider dropping this?

If I remember it correctly, this item was added by @ritch. I don't recall what was the reasoning behind that. We are thinking about providing a more generic approach for creating scopes/hierarchies, prototype methods then may become a specific application of this generic approach.

@bajtos
Copy link
Member Author

bajtos commented Jul 23, 2014

create upgrade guide 1.x => 2.x

The migration guide is available here: http://docs.strongloop.com/display/LB/Migrating+existing+apps+to+version+2.0

@fabien
Copy link
Contributor

fabien commented Jul 23, 2014

@bajtos thanks for the clarification, leftovers makes a lot more sense.

Regarding the prototype methods, @ritch chimed in on a discussion that he appreciated the heads-up concerning this functionality, and that it shouldn't be dropped just like that. The functionality it provides is something that should make it into the refactored approach to scoping/hierarchies.

@ritch
Copy link
Member

ritch commented Jul 23, 2014

We aren't dropping remote prototype methods.

On Jul 23, 2014, at 6:30 AM, Miroslav Bajtoš [email protected] wrote:

@fabien I apologize for the confusion. 2.0 has definitely arrived and there won't be any breaking changes until 3.0.

This GH issue lists items there were mentioned in #276 (the pull request for 2.0 branch). My intention was to move them to a place where they are easy to find, then review them and decide which of them are still relevant. I have renamed the issue from "2.0 TODO" to "Leftovers from 2.0" to make this more clear.

@bajtos I urge you to not drop remoted prototype methods, as discussed before. It is in heavy use whenever you want to add functionality in a sensible manner, I can assure you. Why even consider dropping this?

If I remember it correctly, this item was added by @ritch. I don't recall what was the reasoning behind that. We are thinking about providing a more generic approach for creating scopes/hierarchies, prototype methods then may become a specific application of this generic approach.


Reply to this email directly or view it on GitHub.

@seckin
Copy link

seckin commented Dec 15, 2014

@ritch hey Ritchie, isn't this line trying to create a new object even if there is one that just needs to be updated accordingly?
2582c3f#diff-6a78f5046ecce36859baaf85c9b2b86aR475

I am trying the full-stack example with mongodb connection and bulk-update POSTs are returning HTTP500 because of this. I haven't dug into the replication system enough to really make sense out of all the moving parts but just wanted to ask here to see if there is something trivial I am missing (for instance; do I need to use the rectify changes remote function instead of bulk update to resolve this?)

@bajtos
Copy link
Member Author

bajtos commented Dec 15, 2014

@seckin please open a new github issue to discuss that.

@strongloop strongloop locked and limited conversation to collaborators Dec 15, 2014
@superkhau superkhau added the doc label Feb 26, 2015
@crandmck crandmck removed the doc label Mar 3, 2015
@crandmck
Copy link
Contributor

crandmck commented Mar 3, 2015

I don't believe this should have the "doc" label; although some of the items are doc items, many are not. If and when we create specific doc issues from the items on the list, then those should have the "doc" label.

@bajtos
Copy link
Member Author

bajtos commented Mar 3, 2015

I don't believe this should have the "doc" label; although some of the items are doc items, many are not. If and when we create specific doc issues from the items on the list, then those should have the "doc" label.

Agreed 👍

@bajtos
Copy link
Member Author

bajtos commented Feb 3, 2016

Considering that this issue is over 18 months old and the issues in the list were not important enough to fix them so far, I doubt we will ever work on them. I am closing this issue.

@bajtos bajtos closed this as completed Feb 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants