GithubHelp home page GithubHelp logo

aggrofolio's People

Contributors

labalicious avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

aggrofolio's Issues

Add a user_id condition to every index page

May even need to add it to every single page just to ensure the user owns the record, but for now lets just get the main thing functioning. Every single index and admin_index needs to be supplemented to have something along the lines of 'conditions' => array('[Model].user_id' => $this->[Model]->userId())

or for paginated pages

$this->paginate['conditions']['[Model].user_id'] = $this->[Model]->userId();

Of course [Model] would be substituted for that controller's model. Perhaps we can abstract this to app_controller?

Add UUID to all important tables

Currently only appears on Album and Media Item. Need to add this to Bookmarks and Projects and Posts as well. Value needs to be populated when scanning blog and jsfiddle.

Behance support

Complex, as it requires parsing multiple pages of html and scraping the data.

Comment emails

Text doesn't word wrap. Use if statement on website.

Sent via Hubroid

Blog / RSS post category matching against PostCategory

When scanning entries from an rss (specifically for blogs) the category needs to be matched.

Currently I'm just doing PostCategory->findByName() but this should be changed to a find(list), with all entries uppercased, and then checked for isset().

Add a new 'Setting' record when someone registers

During registration, a blank (or default) setting record should be inserted alongside the new user's account. You can refer to this documentation: http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-saveassociated-array-data-null-array-options-array on how to format the array for the association to be completed.

I would recommend in the UsersController, simply adding an empty array under a 'Setting' key NEXT to the 'User' key in $this->request->data just before the call to $this->User->save (or saveAssociated in this case).

Where you retrieve the default data or what you decide to use can be up to you. We can build out a theme selector, or let the user add other options (such as the site name).

Add 'unique' validation rule to all uuid fields

So all the tables that import data (company, school, skill, album, media, project) have a column called 'uuid'. This is the unique ID from the REMOTE provider, not local. Right now there is a built-in (to cakephp) rule to check to see if that column is unique.

You can read about CakePHP validation here: http://book.cakephp.org/2.0/en/models/data-validation.html

Anyway, unfortunately this is not enough alone. Although it is extremely unlikely, there is a chance that 2 separate providers might share a uuid. For this reason we should compare unique with uuid and account_id columns combined. This looks like it will require a custom validation function (in all likeliness), which is also documented in the link above.

Please change all models to use a uniqueId validation rule that can compare multiple columns. The rule, if you end up making it from scratch, should go into appModel, however you would simply reference it in the validation attribute declarations in each child model where necessary. If you check the models corresponding to the list at the beginning finding mentions of 'uuid' in the validation should be easy.

Nested / Threaded Posts

Posts can belong to parent posts.

Will it be easy to pull all posts in a series using find('threaded')?

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.