Skip to content

Big refactoring #655

Closed
Closed

Description

@marienfressinaud

To @Alkarex and @aledeg

I would like to improve general quality of FRSS source code (e.g. coding style, refactoring, improve MVC system). It means I will work on very different code sections. So if you're working on something "big" (e.g. SQL instructions for PostgreSQL), please let me know so I will try to not break your work.

I think it is necessary before adding big features such as plugin system. For instance, I'm working on the new category system (#646) but now I have to add new columns in DB. But before I would like to create a page in administration to check installation configuration is still good and if it's not, try to patch errors (e.g. missing columns in DB). But to do that, I would like to have a strong base code. So I'm actually stuck :)

Some examples of what I want to do:

  • Improve general indexController source code. Actually normal, global and reader views are handled by the indexAction but I think it's too problematic.
  • Improve usersController (needed for what I want to do next for multiuser system)
  • i18n system (suggestion by @aledeg in Introducing i18n.freshrss.org #648)
  • Move nextGet system from view to Controller
  • Improve javascript_vars.phtml. For instance, use a general i18n object to handle translation
  • FreshRSS.php is too complicated!
  • Use helpers _t(), _i(), _url(), Minz_Request::good() and Minz_Request::bad() as much as possible
  • Coding style
  • Etc.

Activity

  1. added this to the 0.10-dev milestone on Oct 5, 2014
  2. marienfressinaud commented on Oct 5, 2014

    @marienfressinaud
    MemberAuthor

    Also, I would like to do a review of Minz code in order to update the official repository and release a new version :)

  3. added a commit that references this issue on Oct 5, 2014
  4. Alkarex commented on Oct 5, 2014

    @Alkarex
    Member

    Ok, I have just committed the primitive extension system I am currently using febabcc
    Although not finished, it is already functional for CSS + JavaScript.

    If you plan any change in the database that may affect performances, it could be good to first manually test the performances of the SQL queries on a large database before doing too many other changes.
    If needed, I can provide an SQL dump of ~200k articles.

  5. marienfressinaud commented on Oct 5, 2014

    @marienfressinaud
    MemberAuthor

    Oh nice :)

    I only planned to add two order fields (for both of feed and category tables) and to change category id as discussed in #229 (I will certainly ask you to help me on that later :p). But actually I have delayed changes in DB after closing this ticket.

  6. Alkarex commented on Oct 5, 2014

    @Alkarex
    Member

    Ok :-)

  7. aledeg commented on Oct 5, 2014

    @aledeg
    Member

    Go ahead for the database. I just started to work on postgres and i am stuck with not a lot of time currently. I can start over because now I know how to solve my first problems.
    And anyway I need to rewrite a lot of queries to make them work on the 3 databases.

  8. marienfressinaud commented on Oct 5, 2014

    @marienfressinaud
    MemberAuthor

    There is no more useless Minz_Translate::t() (now please use _t()) or FreshRSS_Themes::i() (use _i())

  9. marienfressinaud commented on Oct 5, 2014

    @marienfressinaud
    MemberAuthor

    By the way, #634 should be part of this ticket.

  10. added a commit that references this issue on Oct 5, 2014
  11. marienfressinaud commented on Oct 5, 2014

    @marienfressinaud
    MemberAuthor

    javascript_vars.phtml has been rewritten. Some functions may not work anymore even if I tried to be meticulous. Please let me know if anything is wrong!

  12. 16 remaining items

  13. Draky50110 commented on Oct 20, 2014

    @Draky50110
  14. marienfressinaud commented on Oct 22, 2014

    @marienfressinaud
    MemberAuthor

    Good news, the end of refactoring is coming! If you see my first post, there is just the i18n improvement to finish :) (last but not least!) In fact refactoring of indexController is not merged yet but you can try the branch 634-refactor-with-context, I just have to fix the feed aside which has a new structure.

    I hope to close this ticket before the end of the week ;)

  15. marienfressinaud commented on Oct 23, 2014

    @marienfressinaud
    MemberAuthor

    Now available in the 634-refactor-with-context branch :) (before / after)

    aside_feed

  16. Alkarex commented on Oct 23, 2014

    @Alkarex
    Member

    Looks good :-) I am quite busy currently but will try soon. What is the status of the HTTP login?

  17. marienfressinaud commented on Oct 24, 2014

    @marienfressinaud
    MemberAuthor

    Work on 634-refactor-with-context branch is finished and merged into dev. Enjoy!

  18. aledeg commented on Oct 24, 2014

    @aledeg
    Member

    nice 👍 I'll check that this weekend

  19. marienfressinaud commented on Oct 24, 2014

    @marienfressinaud
    MemberAuthor

    Note default view option can be broken after updating: please submit the reading form again to fix it.

  20. Alwaysin commented on Oct 25, 2014

    @Alwaysin
    Contributor

    J'aime beaucoup 👍

  21. Jucgshu commented on Oct 25, 2014

    @Jucgshu
    Contributor

    This new context menu is brilliant !

    Just 2 notes with origin theme :

    • the size font which is a little too big to my personal taste.
    • I feel the pipe sign on the left of the feeds count breaks the smoothness of the whole thing.

    Other than that, it's really really cool !

  22. marienfressinaud commented on Oct 25, 2014

    @marienfressinaud
    MemberAuthor

    Thanks!

    • The size can be changed, I waited for feedbacks :) Another point highlighted by another user is to not use bold font for category names.
    • I added the pipe because category names can be long and being hidden by the unread count. So I needed a trick to not just cut the name.
  23. Draky50110 commented on Oct 25, 2014

    @Draky50110

    Added to "problems" in the issue asking for testing : untranslated string.

  24. marienfressinaud commented on Dec 11, 2014

    @marienfressinaud
    MemberAuthor

    Last merge (efdb80f) was the final one: now we have a new i18n system. I close this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions