SuiteCRM icon indicating copy to clipboard operation
SuiteCRM copied to clipboard

Scheduled Reports: Edit View: Various smaller fixes

Open lazka opened this issue 5 years ago • 7 comments

Description

Various smaller fixes for the "Scheduled Reports" edit view page, each in a separate commit.

Broken things:

  • Removing emails didn't work
  • It defaulted to the advanced cron input instead of the basic one
  • The cron input selects didn't get translated to other languages
  • Showing it led to PHP errors in the log because of non-existing leftover fields

Layout before: editview_before

Layout after: editview_after

Month day select before/after (German): month_before month_after

Week day select before/after (German): week_before week_after

Motivation and Context

I'd like my users to create scheduled reports themselves and so I'm trying to make the user experience better (Also removing emails didn't actually work..)

How To Test This

  • Create a new Scheduled Report record
  • The edit view should show the basic cron input with translated strings in one row
  • Add an email address and save.
  • Re-edit the record and try to remove the email address again, it should work.

Types of changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • [x] My code follows the code style of this project found here.
  • [ ] My change requires a change to the documentation.
  • [x] I have read the How to Contribute guidelines.

lazka avatar Jul 04 '19 12:07 lazka

Assessed :+1:

Mac-Rae avatar Jul 09 '19 14:07 Mac-Rae

Thanks for the hints, I'll look into it.

lazka avatar Oct 03 '19 16:10 lazka

Codecov Report

Merging #7519 into hotfix-7.10.x will increase coverage by <.01%. The diff coverage is 12.5%.

@@                Coverage Diff                @@
##           hotfix-7.10.x    #7519      +/-   ##
=================================================
+ Coverage          10.59%   10.59%   +<.01%     
=================================================
  Files               3227     3227              
  Lines             240029   240049      +20     
=================================================
+ Hits               25434    25437       +3     
- Misses            214595   214612      +17

codecov-io avatar Nov 28 '19 13:11 codecov-io

I've moved the formatting into SugarFieldCronSchedule. If someone wants to reuse it it can easily be moved to a more central place now.

This should be ready.

lazka avatar Nov 28 '19 13:11 lazka

Codacy Here is an overview of what got changed by this pull request:


Issues
======
+ Solved 3
- Added 4
           

Complexity increasing per file
==============================
- include/SugarFields/Fields/CronSchedule/SugarFieldCronSchedule.js  1
         

See the complete overview on Codacy

samus-aran avatar Nov 28 '19 13:11 samus-aran

CLA assistant check
All committers have signed the CLA.

SuiteBot avatar Aug 27 '20 13:08 SuiteBot

Some of this has been fixed now in #9635 and #9637. I can rebase if wanted and drop the two overlapping commits.

lazka avatar Aug 17 '22 09:08 lazka