Giter VIP home page Giter VIP logo

Comments (11)

sendhil avatar sendhil commented on May 20, 2024

Moving to 4.0.1.

from wordpress-ios.

sendhil avatar sendhil commented on May 20, 2024

Moving to 4.1.

from wordpress-ios.

sendhil avatar sendhil commented on May 20, 2024

@aerych - thoughts on tackling this for an upcoming release?

from wordpress-ios.

aerych avatar aerych commented on May 20, 2024

Moved to 4.2. There are several things in front of this but we'll get to it.

from wordpress-ios.

sendhil avatar sendhil commented on May 20, 2024

@aerych - is this on the radar for 4.2?

from wordpress-ios.

aerych avatar aerych commented on May 20, 2024

Pushing to 4.3

from wordpress-ios.

aerych avatar aerych commented on May 20, 2024

Moving to 4.4

from wordpress-ios.

aerych avatar aerych commented on May 20, 2024

Heya, @koke @astralbodies and @jleandroperez :)

As a part of the solution for this issue I want to simplify our core data schema for comments. AbstractComment and ReaderComment should go away in favor of making Comment the definitive model. I'd really appreciate an early set of eyes on my working branch so I can squash any issues with core data sooner than later.

In particular:

  • Dropping AbstractComment and ReaderComment from the schema requires a mapping mapping model to keep core data happy when upgrading. I've created the mapping model and tested upgrading via the simulator. It seems to be working but I'm not sure I haven't missed something important.
  • On the Comment model, I've made the blog relationship optional, and changed the post relationship to point to BasePost. Relations do not have to be homogenous and this lets a comment belong to either a Post or ReaderPost model.
  • On the CommentService I really was trying to keep the post centric methods more generic but I don't see away around referencing ReaderPost directly. Its probably fine, but I'm open to a different approach.

Thanks guys!

from wordpress-ios.

jleandroperez avatar jleandroperez commented on May 20, 2024

Less class'ess. Less code, simplier Data Model. +1 Love the idea!

from wordpress-ios.

koke avatar koke commented on May 20, 2024

On the CommentService I really was trying to keep the post centric methods more generic but I don't see away around referencing ReaderPost directly. Its probably fine, but I'm open to a different approach.

I think it's OK as it is, but if you want to, you could extract the merging into a mergeComments:withExistingComments:completionHandler:, then pass either blog.comments or post.comments. Then replace the findComment* methods with findCommentWithID:inExistingComments:

from wordpress-ios.

aerych avatar aerych commented on May 20, 2024

but if you want to, you could extract the merging

I like that. :) The more generalized the better!

from wordpress-ios.

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.