Commit graph

647 commits

Author SHA1 Message Date
Colin Kuskie
92815bb75d Change www_delete and www_cut to use either the container, or the parent
as the asset to return the user to after their actions.
Subclass getContainer in the Story, and alias it to getArchive.
Fixes bug 10657.
2009-08-14 19:43:14 +00:00
Colin Kuskie
f52a3f9bdd Forward port test fix. 2009-08-11 20:51:51 +00:00
Colin Kuskie
51aa116377 Forward port WEBGUI_LIVE switch addition to Event/edit.t 2009-08-11 20:18:58 +00:00
Martin Kamerbeek
46829ac970 Adding return JSON on specific requeest feature to template. 2009-08-10 12:42:33 +00:00
Colin Kuskie
af2d858f68 Revision Event storage locations. 2009-08-09 04:35:16 +00:00
Patrick Donelan
146373937d Fixed two new Survey bugs
* Survey response startDate stored twice
startDate was being stored both in a column in Survey_response and also inside the
serialised responseJSON. Consolidated to column and moved startDate methods to
Survey.pm where they are actually used. Was not causing errors because both copies
were initialised to "now" at response creation time, and then never changed (this is also
why we don't need any repair code to fix existing survey repsonses in the wild).

* Survey ExpireIncompleteSurveyResponses Workflow Activity not enabled
The only time you'd actually want to modify startDate is when you're trying to simulate
response expiry in test code, which is why I found the above bug when I was writing the
missing test suite for ExpireIncompleteSurveyResponses. Along with test suite, added
upgrade code to enable workflow activity and add it  to the Daily Maintenance Tasks
workflow. Also made minor fixes to the workflow activity, such as making sure it uses
the correct isComplete code.
2009-08-07 01:08:39 +00:00
Colin Kuskie
3b577599f5 Forward port XML encoding for template based RSS feeds in the Gallery. 2009-08-05 22:16:38 +00:00
Colin Kuskie
4ecc2c725e Forward porting Event iCal end day date math fix. 2009-08-03 22:56:10 +00:00
Colin Kuskie
ecd89d349a Forward porting calendar non-inclusive end times fix. 2009-08-03 20:05:34 +00:00
Colin Kuskie
31544f13b0 Remove Product test debug diag. 2009-07-27 16:24:19 +00:00
Colin Kuskie
e8bfd8a0a7 Empty warranty, brochure and manual show empty areas in the Product. 2009-07-27 16:21:04 +00:00
Colin Kuskie
4226ef211f Remove autocommit from addRev in Story, because it committed the
story before the keywords were set, which messed up searching.
Adjust tests to request autocommit on all submitted stories.
2009-07-24 17:26:50 +00:00
Colin Kuskie
c9fa63bdb7 Give StoryArchive sub-folders the same style as their parent. Fix to hide them
better upcoming.
2009-07-23 21:17:25 +00:00
Colin Kuskie
20814beefd Update to use automatic tag rollback. 2009-07-23 21:02:53 +00:00
Colin Kuskie
f2bd5d8e48 The shelf now checks for viewing permissions of the products and shelves that it displays.
Template with i18n feedback for users.
2009-07-17 21:01:55 +00:00
Colin Kuskie
c2ffca0845 Remove debug Test module. 2009-07-17 04:15:02 +00:00
Colin Kuskie
713c43976b fix this piece of crap test, again. 2009-07-17 01:45:50 +00:00
Colin Kuskie
8468884df8 Change article test to use templates that aren't deleted. 2009-07-16 22:36:20 +00:00
Colin Kuskie
754fe6a800 This is a only a copy of Article.t 2009-07-16 22:26:42 +00:00
Colin Kuskie
578bdf361c Update the # of tests in Asset/Sku/Product.t 2009-07-16 04:21:48 +00:00
Colin Kuskie
e335276cfa Make the Product Sku copy the storage locations when a new revision is added. 2009-07-16 04:12:30 +00:00
Colin Kuskie
1c40934876 Fix a typo in the story link back to the archive, to limit display to only 1 keyword. 2009-07-16 03:10:27 +00:00
Colin Kuskie
2d64657165 Use WebGUI::Test rollback methods instead of an END block. 2009-07-09 20:31:25 +00:00
Colin Kuskie
b89486d5f3 Work around bugs in HTML::Entities, which doesn't output strict utf8, and
DBD::mysql, which doesn't encode high characters correctly.  This shows up
in the Post synopsis, HTML::splitTag and Post->getSynopsisAndContent.
2009-07-07 22:24:00 +00:00
Colin Kuskie
d6400799aa Allow snippets to be really empty, without showing the Page Not Found screen. 2009-07-06 19:35:00 +00:00
Colin Kuskie
df51a0d99f Fix the form for the Product. It was returning variants with no quantity. 2009-07-03 16:19:26 +00:00
Colin Kuskie
1bcae0d3bc Add an Event method for returning a non-inclusive end DataTime object.
Have Calendar use that for determining the end of a week in viewWeek.
Fix getEventsIn to do all comparisons in UTC so that extra events are not added in.
2009-07-03 05:04:43 +00:00
Colin Kuskie
f04a162ea3 Clean-up of version tags in this test. Deleting a parent deletes the children. 2009-07-03 04:50:13 +00:00
Patrick Donelan
0265e1dfbd Fixed Survey::Test diagnostics when comparing complex data structures 2009-07-03 01:39:16 +00:00
Colin Kuskie
c30614bdf6 Forward porting fixes for iCal escaping and unescaping, and line wrapping. 2009-07-01 22:18:57 +00:00
Colin Kuskie
f0eaa51d3a If adding an asset is added to another asset with an open version tag, put the
new asset in that version tag, too.
2009-06-23 19:32:40 +00:00
Colin Kuskie
a4be42a7ce Fix bugs with resizing photos on upload. 2009-06-23 00:07:16 +00:00
Patrick Donelan
b5186bfbab fixed #10565: Survey: add question doing double-create 2009-06-22 07:08:08 +00:00
Colin Kuskie
61b4e1e826 Never delete an asset property key. 2009-06-20 00:16:34 +00:00
Patrick Donelan
cbc308c55a SurveyJSON size reduction/optimization
SurveyJSON was storing a lot of redundant information (every setting on
every single section/question/answer, which, in most cases, will simply
take on the default values). This was bloating the surveyJSON property in
the db, and equally as importantly, slowing down Survey because it had to
do a lot of JSON parsing on the serialised surveyJSON object.

We now factor out and store the current section/question/answer defaults
along with the surveyJSON data itself, which means that we only needs to
store properties that differ from the defaults. This results is a massive
reduction in the size of the serialized surveyJSON stored in the database,
as well as a speed-up in json parsing time.

The compression/uncompression happens transparently to the rest of Survey.
2009-06-19 08:07:18 +00:00
Colin Kuskie
3bc2006991 Make the new getPackageList functionally equivalent to the old one. 2009-06-17 01:11:22 +00:00
Colin Kuskie
914620f5a4 Performance improvements with getting the lists of packages when there
are lots of assets.
2009-06-17 00:53:47 +00:00
Patrick Donelan
d820d43760 Fixed #10520 - Survey responses get confused if survey structure modified
Survey responses are now revision-aware.
The survey structure gets revisioned automatically as necessary when changes
are made on the Edit Survey screen (as necessary ~~ a response exists
for the current revision)
2009-06-16 06:25:38 +00:00
Patrick Donelan
3e5d5804f6 Made Survey tests a little less dependent on multiple choice bundle defaults 2009-06-16 06:25:09 +00:00
Colin Kuskie
f5851c96ff Graceful dying without TAP::Harness v3 2009-06-11 17:03:32 +00:00
Yung Han Khoe
be430dfdd2 fixed #9953: Matrix 2.0 - Not enough tests 2009-06-10 18:46:15 +00:00
Patrick Donelan
9004e5d711 Survey cleanup and minor bug fixes
Cleaned up edit page tabs
Improved API docs
Added noCreate option to responseId so that it doesn't create unnecessary responses
Added groupToTakeSurvey priv check to takeSurvey
2009-06-09 03:27:06 +00:00
Colin Kuskie
8a683d1aef Better template diagnostics on failure. It now also includes the template URL, and templateId
in both the onscreen and logged output.
2009-06-08 16:53:53 +00:00
Doug Bell
cbe138d16e added tests for getAdjacentThread 2009-06-05 17:31:01 +00:00
Doug Bell
75640eed59 fixed problem in test using <=> instead of cmp 2009-06-05 17:30:50 +00:00
Doug Bell
457f7f2dc6 added test for adjacent threads 2009-06-05 17:30:42 +00:00
Yung Han Khoe
15b197976e Adding Matrix tests 2009-06-03 13:22:32 +00:00
Patrick Donelan
5acade845a Fixed Survey test suite 'tagged' check to work with nested data 2009-06-03 07:15:52 +00:00
Patrick Donelan
9702ffcaac Fixed Survey section-level branch precedence bug
For Sections with questions spread out over multiple pages, branch
expressions should only happen on the last page of the Section.
Added explicit test.
2009-06-03 02:12:00 +00:00
Patrick Donelan
da595da89e Remove bloat from Survey response record to reduce json serialisation time 2009-06-03 02:11:31 +00:00