Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
98ac5e0
add migration service
Elfangor93 Jul 31, 2023
e5ff9c6
add precheck method to controller
Elfangor93 Aug 1, 2023
5572730
add MVC routine for precheck
Elfangor93 Aug 6, 2023
0331023
add step2 to migration
Elfangor93 Aug 7, 2023
b2f5a70
add view of step 3
Elfangor93 Aug 28, 2023
7de57a9
update file headers
Elfangor93 Sep 9, 2023
9a88d5c
add migration functionality
Elfangor93 Sep 9, 2023
212f88d
add translations
Elfangor93 Sep 17, 2023
4f00e2c
add some prechecks
Elfangor93 Sep 18, 2023
109b659
add some checks
Elfangor93 Sep 23, 2023
728fc46
add some pre-migration checks
Elfangor93 Sep 24, 2023
668711b
add checksourcetable part1
Elfangor93 Sep 30, 2023
44b107c
Add destination tables precheck
Elfangor93 Oct 9, 2023
11c5bb4
finish prechecks
Elfangor93 Oct 9, 2023
8762741
add migrateables
Elfangor93 Oct 10, 2023
baaf974
add migrateables
Elfangor93 Oct 10, 2023
e5e7ab8
add migrator JS
Elfangor93 Oct 13, 2023
8595fbd
add precheck: ID availability
Elfangor93 Oct 16, 2023
faca6c5
add precheck: image mapping
Elfangor93 Oct 16, 2023
3bfc7c4
add migration table
Elfangor93 Oct 23, 2023
7ade55d
replace Migrateables class
Elfangor93 Oct 27, 2023
6f4d925
add migrator.js
Elfangor93 Oct 29, 2023
00ae807
add proper ajax request structure
Elfangor93 Oct 30, 2023
7621d0e
add delete and resume
Elfangor93 Nov 3, 2023
d7ef1ce
add component logger
Elfangor93 Nov 4, 2023
98abeff
adjust logging and messaging
Elfangor93 Nov 6, 2023
fea3069
add convertData method to script
Elfangor93 Nov 6, 2023
26465cc
buttons fix
Elfangor93 Nov 7, 2023
46c4001
border style: active migration
Elfangor93 Nov 7, 2023
8a83678
update resume method
Elfangor93 Nov 11, 2023
b8142b8
fix getItems method
Elfangor93 Nov 11, 2023
bac76a2
update migrator.js
Elfangor93 Nov 13, 2023
beb25fc
update Migration service
Elfangor93 Nov 20, 2023
a83b2f4
add defineTypes() method
Elfangor93 Nov 20, 2023
a776992
fix issues while category migration
Elfangor93 Nov 20, 2023
2575dc5
first migration of categories successful
Elfangor93 Nov 20, 2023
bc37268
apply "Manual repair"
Elfangor93 Nov 27, 2023
7ed1412
fix issues migrepair
Elfangor93 Nov 28, 2023
0581905
adjust name of manual migration btn
Elfangor93 Nov 28, 2023
69def36
add imagetype creation logic
Elfangor93 Dec 2, 2023
da1efd0
fix issue with catid
Elfangor93 Dec 2, 2023
bf945ad
fix disable state of buttons
Elfangor93 Dec 2, 2023
3ad231c
add migrator: adjust cat_thumb
Elfangor93 Dec 4, 2023
4b411ff
update language strings
Elfangor93 Dec 4, 2023
048a6b2
add step 4
Elfangor93 Dec 5, 2023
9caf2ff
add source data removal button
Elfangor93 Dec 5, 2023
a05ebc1
add checkin to migration.cancel task
Elfangor93 Dec 6, 2023
74242d5
add incompatible joomla versions
Elfangor93 Dec 23, 2023
2838038
add MigrationTableTrait to script.php
Elfangor93 Dec 28, 2023
22ab5b6
#__joomgallery_migration missing when update
Elfangor93 Jan 1, 2024
6895bec
add missing use statement in ImagetypeTable.php
Elfangor93 Jan 1, 2024
9afe628
fix php error if XML is not found
Elfangor93 Jan 2, 2024
f0aa61f
fix checkDestTableIdAvailability()
Elfangor93 Jan 2, 2024
a2e970f
adjust language strings
Elfangor93 Jan 2, 2024
27ae3fd
Enable next mig-button when previous is completed
Elfangor93 Jan 2, 2024
1614cce
Add migration menu item
Elfangor93 Jan 2, 2024
af8f658
fix issue catpath on direct usage
Elfangor93 Jan 2, 2024
394ac3e
rearrange migration service
Elfangor93 Jan 3, 2024
7f71049
fix error logging
Elfangor93 Jan 3, 2024
da433cb
Update Jg3ToJg4.php
Elfangor93 Jan 3, 2024
676af73
Add prechecks for direct usage
Elfangor93 Jan 3, 2024
fc86139
fix issue: activate next button
Elfangor93 Jan 3, 2024
9329a79
fix naming issue
Elfangor93 Jan 3, 2024
69e843f
fix load migration form
Elfangor93 Jan 4, 2024
f497943
fix issue missing joomgallery_old.xml
Elfangor93 Jan 4, 2024
5d383e6
fix pre-check: JG3 catpath
Elfangor93 Jan 13, 2024
46b6271
introducing the compatibility mode
Elfangor93 Jan 13, 2024
24d46de
adjust prechecks
Elfangor93 Jan 13, 2024
7bfeb1e
Adjust check messages
Elfangor93 Jan 13, 2024
ac9e52f
adjust convertData()
Elfangor93 Jan 14, 2024
1d46a78
Add case "Use source ID's"
Elfangor93 Jan 14, 2024
99737f6
add metadesc to galleries
Elfangor93 Jan 15, 2024
50ef854
adjust tables
Elfangor93 Jan 15, 2024
cc2f68c
fix folder renaming
Elfangor93 Jan 15, 2024
208a3fb
fix manual repair
Elfangor93 Jan 15, 2024
a46bba8
fix migrateFolders()
Elfangor93 Jan 15, 2024
3382b86
fix issues with dummy records
Elfangor93 Jan 15, 2024
6f52670
reordering queue after manual repair
Elfangor93 Jan 16, 2024
452eb19
fix issue: Field xxx doesn't have a default value
Elfangor93 Jan 16, 2024
1933b85
add precheck: impossible combination
Elfangor93 Jan 16, 2024
cca7640
adjust image mapping to new db field names
Elfangor93 Jan 18, 2024
0ff44f1
fix issue: data mapping against itself
Elfangor93 Jan 18, 2024
2213912
fix issue: reload page when dependency migration is completed
Elfangor93 Jan 19, 2024
0ecffbc
add updateMigrateablesList() when step 3 view loads
Elfangor93 Jan 20, 2024
4db8041
fix confusing pending queue for catimage
Elfangor93 Jan 22, 2024
05f9618
adjust migration language key
Elfangor93 Jan 22, 2024
0625538
some minor adjustments
Elfangor93 Jan 22, 2024
5040f69
Update joomgallery.xml
Elfangor93 Jan 22, 2024
682f2aa
fix issue: skip unset if params are not set
Elfangor93 Jan 22, 2024
2a7bff7
stable params loading
Elfangor93 Jan 22, 2024
b43cb86
load params correctly
Elfangor93 Jan 23, 2024
9a86d2b
exchange \stdClass
Elfangor93 Jan 23, 2024
6a3d020
unset migrateable
Elfangor93 Jan 23, 2024
d226d91
fix issue with empty queues (pending = 0)
Elfangor93 Jan 24, 2024
7ee0ab3
fix queue ordering of nested sets (categories)
Elfangor93 Jan 26, 2024
8e1bfa9
fix php error: Factory not found
Elfangor93 Jan 27, 2024
f13620a
fix created_by
Elfangor93 Jan 29, 2024
4ac0b8e
change default of check_owner
Elfangor93 Jan 29, 2024
24f8053
Refactor loadTypes() mthod
Elfangor93 Feb 5, 2024
bbbca2b
fix error: '_db' suffix for destination tables
Elfangor93 Feb 5, 2024
96f26ca
propagate changes on Type object
Elfangor93 Feb 5, 2024
29e9618
fix php warning: undefined variable $previous
Elfangor93 Feb 5, 2024
9373d5d
fix issue: The XML file of your source extension could not be found.
Elfangor93 Feb 5, 2024
29eb8a2
add administrator to XML path
Elfangor93 Feb 6, 2024
aacbe19
fix issue: Table: #__joomgallery_categories failed
Elfangor93 Feb 6, 2024
602c8fd
fix misspelling
Elfangor93 Feb 6, 2024
b146194
option for recreate old folderstructure
Elfangor93 Feb 14, 2024
eff7193
adjust category path when compatibility mode
Elfangor93 Jan 22, 2024
ece3220
add #__joomgallery_migration to uninstall
Elfangor93 Feb 14, 2024
fee80a1
improve catpath check
Elfangor93 Feb 14, 2024
f4c8d62
activate compatibility mode
Elfangor93 Feb 14, 2024
1f855f0
add indexing to JoomHelper::getRecords()
Elfangor93 Feb 15, 2024
7c69b0b
remove mapping check when recreate
Elfangor93 Feb 17, 2024
0885caa
change default for image_usage
Elfangor93 Feb 17, 2024
47ed469
Add help button
Elfangor93 Feb 17, 2024
a6418eb
add precheck: compatibility mode deactivated
Elfangor93 Feb 18, 2024
3fe390d
change jg_compatibility_mode to sensitive param
Elfangor93 Feb 18, 2024
ad39ff9
fix issue: wrong category path when compatibility is enabled
Elfangor93 Feb 19, 2024
35dbc79
add help popup for category path
Elfangor93 Feb 19, 2024
84c4b23
change skript desc
Elfangor93 Feb 19, 2024
41b405c
rearrange language strings
Elfangor93 Feb 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions administrator/com_joomgallery/forms/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,26 +95,38 @@
<field name="jg_ext_upload_maxsize"
type="externalconfig"
label="com_media.upload_maxsize" />
<field name="jg_pathftpupload"

<!-- <field name="jg_pathftpupload"
type="text"
default="administrator/components/com_joomgallery/temp/ftp_upload/"
maxlength="100"
filter="string"
class="unused"
label="COM_JOOMGALLERY_CONFIG_FTPUPLOAD_PATH"
description="COM_JOOMGALLERY_CONFIG_FTPUPLOAD_PATH_LONG" />
description="COM_JOOMGALLERY_CONFIG_FTPUPLOAD_PATH_LONG" /> -->

<field name="jg_use_real_paths"
type="radio"
default="0"
class="btn-group unused"
class="btn-group"
layout="joomla.form.field.radio.switcher"
label="COM_JOOMGALLERY_CONFIG_USE_REAL_PATHS"
description="COM_JOOMGALLERY_CONFIG_USE_REAL_PATHS_LONG" >
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>

<field name="jg_compatibility_mode"
type="list"
global_only="true"
sensitive="true"
default="0"
label="COM_JOOMGALLERY_CONFIG_COMPATIBILITY_MODE"
description="COM_JOOMGALLERY_CONFIG_COMPATIBILITY_MODE_LONG" >
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>

<field name="jg_checkupdate"
type="radio"
default="1"
Expand Down Expand Up @@ -638,6 +650,19 @@
</field>
</fieldset>

<fieldset type="tab" name="user-comments" label="COM_JOOMGALLERY_COMMENTS">
<field name="jg_showcomments"
type="radio"
default="1"
class="btn-group unused"
layout="joomla.form.field.radio.switcher"
label="COM_JOOMGALLERY_CONFIG_COMMENT"
description="COM_JOOMGALLERY_CONFIG_COMMENT_LONG" >
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
</fieldset>

<fieldset type="tab" name="user-reports" label="COM_JOOMGALLERY_REPORTS">
<field name="jg_report_images"
type="radio"
Expand Down
55 changes: 55 additions & 0 deletions administrator/com_joomgallery/forms/migrationrepair.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<form>
<field name="note"
type="note"
description="COM_JOOMGALLERY_MIGRATION_MANUAL_DESC"
/>

<field name="src_pk"
type="number"
required="true"
default="0"
label="COM_JOOMGALLERY_MIGRATION_REPAIR_SRCPK_LABEL"
description="COM_JOOMGALLERY_MIGRATION_REPAIR_SRCPK_DESC"
min="0" step="1"
/>

<field name="state"
type="list"
default="0"
required="true"
label="COM_JOOMGALLERY_MIGRATION_REPAIR_STATE_LABEL"
description="COM_JOOMGALLERY_MIGRATION_REPAIR_STATE_DESC">
<option value="0">COM_JOOMGALLERY_FAILED</option>
<option value="1">COM_JOOMGALLERY_SUCCESSFUL</option>
<option value="2">COM_JOOMGALLERY_PENDING</option>
</field>

<field name="dest_pk"
type="number"
default="0"
label="COM_JOOMGALLERY_MIGRATION_REPAIR_DESTPK_LABEL"
description="COM_JOOMGALLERY_MIGRATION_REPAIR_DESTPK_DESC"
min="0" step="1"
showon="state:1"
/>

<field name="error"
type="text"
label="COM_JOOMGALLERY_CONFIRM_ERROR_MESSAGE"
description="COM_JOOMGALLERY_MIGRATION_REPAIR_ERROR_DESC"
showon="state:0"
/>

<field name="confirmation"
type="radio"
required="true"
layout="joomla.form.field.radio.switcher"
default="0"
label="COM_JOOMGALLERY_CONFIRM"
description="COM_JOOMGALLERY_MIGRATION_REPAIR_CONFIRM"
class="btn-group">
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
</form>
17 changes: 15 additions & 2 deletions administrator/com_joomgallery/forms/subform_catparams.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,21 @@
type="jgradio"
class="btn-group btn-group-yesno"
useglobal="true"
label="COM_JOOMGALLERY_CONFIG_ALLOW_RATING"
description="COM_JOOMGALLERY_CONFIG_ALLOW_RATING_CAT_LONG">
label="COM_JOOMGALLERY_CONFIG_RATING"
description="COM_JOOMGALLERY_CONFIG_RATING_CAT_LONG">
<option value="-1">JGLOBAL_USE_GLOBAL_VALUE</option>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>

<field name="jg_showcomments"
groupByFieldset="false"
default="-1"
type="radio"
class="btn-group btn-group-yesno"
layout="joomla.form.field.radio.configbtns"
label="COM_JOOMGALLERY_CONFIG_COMMENT"
description="COM_JOOMGALLERY_CONFIG_COMMENT_CAT_LONG">
<option value="-1">JGLOBAL_USE_GLOBAL_VALUE</option>
<option value="0">JNO</option>
<option value="1">JYES</option>
Expand Down
1 change: 1 addition & 0 deletions administrator/com_joomgallery/includes/defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
define('_JOOM_TABLE_GALLERIES_REF', '#__joomgallery_galleries_ref');
define('_JOOM_TABLE_IMG_TYPES', '#__joomgallery_img_types');
define('_JOOM_TABLE_TYPES', '#__joomgallery_img_types');
define('_JOOM_TABLE_MIGRATION', '#__joomgallery_migration');
define('_JOOM_TABLE_TAGS', '#__joomgallery_tags');
define('_JOOM_TABLE_TAGS_REF', '#__joomgallery_tags_ref');
define('_JOOM_TABLE_USERS', '#__joomgallery_users');
Expand Down
Loading