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

New Feature: Schedule featured articles #13596 #16960

Closed
wants to merge 223 commits into from
Closed

New Feature: Schedule featured articles #13596 #16960

wants to merge 223 commits into from

Conversation

eshiol
Copy link
Contributor

@eshiol eshiol commented Jul 4, 2017

Pull Request for Issue #13596.

Summary of Changes

Added two fields in the article editor featured_up (Start Featured) and featured_down (End Featured)
image
An article is featured if featured is yes and (featured_up is null or is less than or is equal to now) and (featured_down is null or is greater than or is equal to now)

Testing Instructions

create 5 articles:

  1. not featured
  2. featured, featured_up = null, featured_down = null
  3. featured, featured_up = tomorrow, featured_down = null
  4. featured, featured_up = null, featured_down = yesterday
  5. featured, featured_up = yesterday, featured_down = tomorrow

Create an Articles » Featured Articles menu item
Create a News Flash module and set the option Featured Articles to Only show Featured Articles.

Expected result

Only the articles 2 and 5 will be shown in the Articles » Featured Articles menu item and in the News Flash module.

Actual result

Documentation Changes Required

laoneo and others added 30 commits January 23, 2017 15:52
* Move JControllerLegacy to namespace

* Change content controller to use the new Base controller class

* Adapting the test as JControllerLegacy has a different class name

* New line at the end of the file

* Activating tests

* Reset to the original state

* Rename Base to Controller

* Change name to new class name Controller

* Move to Cms namespace

* Load the Cms namespace trough composer

* Fix the test again

* Composer dump with latest version

* Move to Joomla only namespace in composer.json

* Move JControllerAdmin to namespace

* Happy travis

* Add missing alias
* Move JViewLegacy to namespace

* Add alias for JViewLegacy on JLoader

* Move the categories views to namespace
* Move JModelLegacy to namespace

* Move JModelList to namespace

* Move JModelAdmin to namespace

* Move JModelForm to namespace

* Also use the proper namespace for exceptions

* Update the class alias list

* Namespace stdClass

* Fixe some simple tests

* Auch

* Extend from new model class

* Remove tests which rely on the hash cache

* CS fixes
* Fix namespace for exceptions

* Move JTable to namespace

* Move JTableObserver to namespace

* Move JTableInterface to namespace

* Move JTableNested to namespace

* Move JTableObserverContenthistory to namespace

* Move JTableObserverTags to namespace

* Fix code style and unit test

* Remove package information in docblock

* Package is not required anymore in docblock

* Revert invalid composer commit

* Move JTableAsset to namespace

* Move JTableExtension to namespace

* Move JTableLanguage to namespace

* Move JTableUpdate to namespace

* Move JTableUpdatesite to namespace

* Move JTableUser to namespace

* Move JTableUsergroup to namespace

* Move JTableViewlevel to namespace

* Update doc block, remove package declaration

* Fix intendion cs error
* Move JAccess to namespace

* Fix some minor stuff and delete JRule and JRules
* Add override plugin

* Support overrides of namespaced classes

* Better function name

* Move override plugin to rep

* Revert to none namespaced version as on staging

* Load the Joomla namespace trough JLoader

* JLoader alis load class support

* CS

* Only load the alias when the original class exists

* One more space, outch

* Add unit tests

* Add note about use of composer
* Move JCaptcha to namespace

* Change CMS classes as well

* Adapted intendation
* Move JErrorPage to namespace

* Doc block comment should be inline with the rest

* Move class to Joomla\Cms\Exception\ExceptionHandler

* Correct class name
* Change JComponent* classes to namespace

* Adapted intendation

* Check for new interface

* Intendation
eshiol and others added 13 commits July 12, 2017 14:17
…16939)

* Apply patch #12532, move to the fw package classes

* Namespace input classes

* Change application classes

* Compile correct class name

* Restore unit test
It was a bit ambiguous so I updated the string to be more explicit

### Before

### After
Update the deprecated notice on an unused file to indicate that it will be removed in J4
…em/debug (#16674)

* Some improvements and cleanups in plugins/system/debug
- Make use of $this->db instead of JFactory::getDbo()();
- Added missing docblocks
- Type-safety
- replace unnecessary strlen() call with simple check
- CS

* A few more changes

* A few more changes

* Changes based on reviewer's comment

* cs

* cs

* cs

* cs

* cs
On new installs this changes the vote plugin to be disabled by default. It is not used that often and by disabling it we also benefit from a simpler article list view in the admin
The text used for the banned fields in com_contacts is different in the commponent options and the individual contact options. Irrelevant of if the information is needed or not we should be consistent. So on the basis that it is important to have the extra information I have updated the individual contact strings to match the global ones.
* Push up the destructor from various database drivers to their parent abstract class JDatabaseDriver as it almost every time just does one thing viz disconnect(). Otherwise it can always be overridden.
Never `unset` class property. $this->connection  set to null in disconnect methods.
Nosql connect return is void not bool.

* Use version macro now
* put multiple versions of the same <meta> tag

* fixed code-style errors

* remove tabs

* cs: Remove tabs
* Case mismatch in function call

* Elvis

* Fix nested positive ifs

* Fix static method invocation via ->

* " to '

* Remove unnecessary parentheses

* Merged isset()

* Inline redundant value

* Move disconnected code outside the foreach loop.

* Fixed Docblocks

* Replaced preg_replace() with str_replace()

* Replaced PHP4 type-casting

* Type-safe string comparisons

* More type-safe comparisons

* Removed unused call and variable.
Also Todo'd two things for someone to check

* Reverse preg_replace() replacement because there was a limit in preg and it might cause trouble...

* Codesniffer

* Fix integer

*  Changes proposed by @andrepereiradasilva and two more by me, to get function calls out of the loop or reduce calls inside the loop.

* Shouldn't this be written this way?

* Some extra work according to @andrepereiradasilva's notes

* Some more changes from @andrepereiradasilva's comments

* Some more changes from @andrepereiradasilva's comments

* Reverted removal of duplicate key entries, added TODO's

* Code formatting fixes

* More code formatting fixes

* Fix merge introduced problem.

* Additional changes according to reviewer's comments

* Additional changes according to reviewer's comments

* Changes, according to @andrepereiradasilva's suggestions

* Forgot to commit this one
* Add CSRF token for Ajax

* Add CSRF token to hathor

* CS

* call jquery first

* Use server->get()

* Loaded once

* Add CSRF to core.js request method

* Use CSRF instead Csrf

* Use scriptOption

* Fix test

* MISC update

* Use $name variable in JS

* Use string as script option directly and fix tests
@brianteeman
Copy link
Contributor

Can you look at resolving the conflicts so that this can be tested please.

@zero-24
Copy link
Contributor

zero-24 commented Aug 18, 2017

@eshiol it looks like you have many not needed files included here?

@eshiol
Copy link
Contributor Author

eshiol commented Aug 21, 2017

I merged the remote-tracking branch 'refs/remotes/joomla/3.8-dev', my mistake. But now, I'm not able to revert it.

…to Schedule-featured-articles-#13596"

This reverts commit 956a9cd, reversing
changes made to 92a92a4.
@photodude
Copy link
Contributor

@eshiol if git revert 956a9cd won't allow you to revert you will likely have to figure out how to redo the source work. (there is probably some way to create a new branch and cherry pick commit 09f5cd5 then overwrite the broken branch in this PR, but I'm not up on all of the pr "rescue" techniques for fixing mistakes and broken branches.)

@tonypartridge
Copy link
Contributor

tonypartridge commented Aug 22, 2017 via email

@joomla-cms-bot joomla-cms-bot added the Language Change This is for Translators label Aug 22, 2017
@eshiol
Copy link
Contributor Author

eshiol commented Aug 22, 2017

Broken PR. I'll open a new one. Sorry.

@eshiol eshiol closed this Aug 22, 2017
@eshiol eshiol deleted the Schedule-featured-articles-#13596 branch August 22, 2017 08:02
@mijalis
Copy link

mijalis commented Sep 20, 2017

I just installed 3.8.0 and this feature is not yet available in the backend.

@brianteeman
Copy link
Contributor

@mijalis As stated above this was closed by the submitter and is awaiting a new pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Language Change This is for Translators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet