Closed (fixed)
Project:
Scheduler
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2015 at 11:59 UTC
Updated:
19 Jan 2016 at 16:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hugronaphor commentedHere is the patch against 7.x-1.x ( e612b0278716bb83b5c9eeeb1b2a62dd50cc22b7 )
Comment #3
visabhishek commentedSending to testbot
Comment #4
hugronaphor commentedAdding as well the patch against 7.x-1.3 ( e21b69e990beefde45dd17bb16f2550dd01a1dcf ) as I use 7.x-1.3 version
Comment #5
jonathan1055 commentedThanks for the explanation and the patch, which looks perfectly reasonable. I'd like my co-maintainer to check this with 8.x first, before any changes are committed for 7.x.
Jonathan
Comment #6
hugronaphor commentedAs I'm curious about 8.x version, here is the patch against 8.x-1.x
The problem in 8.x-1.x is a bit different.
Bug 1: If
publish_onorunpublish_onare disabled the fields will be shown ignoring these configurations.Solved as: Don't check in
scheduler_form_node_form_alterifpublish_onorunpublish_onare disabled - it needs to go through_scheduler_form_alterin order to detect the field access.Bug 2: If the layout is set as "Separate fieldset", the fields are not going to listen for arrangement on admin/structure/types/manage/article/form-display because the group ("details" form element) are not sorted, only fields.
Solved as: Similar to the 7.x fix - attach the fields to the group
scheduler_settingsonly if this is set-up to be so.Comment #8
hugronaphor commentedThere is an error: ERROR: No valid tests were specified.
https://dispatcher.drupalci.org/job/default/26478/console
Seems like there are no tests for 8.x version at all.
Comment #10
hugronaphor commentedOK, the 8.x patch will not pass CI as it is blocked by https://www.drupal.org/node/2594615
However, fixes like this shouldn't be blocked by unfinished Tests migration.
Comment #11
hugronaphor commentedComment #13
pfrenssen@hugronaphor I can confirm that we allow failing patches to be merged after review and manual testing until our test suite is ported to D8 in #2594615: Automated testing in 8.x [meta].
Comment #14
pfrenssenThe use cases explained in #6 are very interesting. There are some serious usability bugs there. It would maybe still be a good idea to add some test coverage for these cases.
Comment #15
pfrenssenCan you add the reasoning for this if in a line of documentation? We have the habit of documenting every switch.
Why has this been removed? Is this related to this issue?
Not that I necessarily disagree with this simplification, but it might be better handled in a different issue. We might even get rid of the scheduler.edit.inc file completely. It now only contains this particular form alter, doesn't seem very useful any more to split this off in a separate file.
edit: Oh I see, you have explained the reasoning in comment #6.
Comment #16
pfrenssenAssigning to me to address the remarks from #15 and commit.
The problem for the non-scheduled content types was reported in #2625572: Admin setting 'Enable content type for scheduler' is ignored, but since this is fixed here as a by-product of fixing the #group property I have marked that issue as a duplicate of this issue.
Comment #17
hugronaphor commentedYes @pfrenssen, it would be better if you'll sort out this problem.
I remember by digging into this issue I spotted others, so I'll report it in another ticket after this one is solved.
Comment #19
pfrenssenAdded the documentation to the switch and committed. Thanks a lot for fixing this!
Comment #20
hugronaphor commentedAwesome.
What about the 7.x fix?
Comment #21
jonathan1055 commentedYes, I will do the 7.x fix. I think the patch in #2 looks OK?
Comment #23
jonathan1055 commentedTested manually and via simpltest. All fine.
Now committed to 7.x. Thanks hugronaphor for the original patch.