View more context

 

webbower

Also, any PG experts here? I think I’ve confirmed that in SS3 -> 4 migration, dev/build is not actually applying the ALTER statements for the ClassName enum updates, even though the dev/build output says that it is. I found this by enabling PG logging and the only ALTER statements I see are the recurring ones that relate to bigint fields

wmk

Could be a bug; in doubt raise an issue

webbower

Turns out there was a bug in a regex in the PG module which was preventing it from matching on constraints with namespaced classes. Will be posting a PR once all is said and done

👍 (1)
webbower

Just to clarify something: SS3 Versioned named the versions table *_versions while SS4 is *_Versions (case change)?

nzphoenix

Hey guys, with a SS3 to SS4 migration, all images that were inserted into the RTE are now broken due to the new image folder structure/paths. Is there a migration script that can handle rewriting the paths within Content fields to point to the new images?

muskie9

@nzphoenix not sure if this was addressed when I was offline, but there is a PR in for this: https://github.com/silverstripe/silverstripe-assets/pull/168

Show 2 attachment(s)
muskie9

☑︎ Update consolidate yield methods to one single dimension and one multi-dimension array methods

This task will query File based on the on the final part of the source string .../../../myImage.jpg. It replaces the source with the file URL based on the returned record. This doesn't currently handle resampled images, but rather uses the primary url for the file.

ping https://github.com/silverstripe/silverstripe-assets/issues/167|#167

muskie9

☑︎ Update consolidate yield methods to one single dimension and one multi-dimension array methods

This task will query File based on the on the final part of the source string .../../../myImage.jpg. It replaces the source with the file URL based on the returned record. This doesn't currently handle resampled images, but rather uses the primary url for the file.

ping https://github.com/silverstripe/silverstripe-assets/issues/167|#167

Hide attachment content
MichalKleiner

I guess it depends how the images are referenced in the content, if they use the shortcode notation they should just work, if they are referenced as URLs it’s just as with any other links - if the destination changes, you need to change your reference of it manually as the content can’t guess that.

wmk

For Links there was a migration task from SS2 (url) to SS3 (shortcode links). Do you know if there is such a task for inserted Images I could run before updating to SS4?

MichalKleiner

Sorry not aware of one, which doesn't mean there is or isn't one.

wmk

@muskie9 wow, that looks great! Do you have any tests for it? Seems I can learn a lot from that task class...

muskie9

no tests at this point but we wrote it on a live project with ~2000 pages in the SiteTree table just as a baseline, but this traversed all dataobject subclasses and mapped all HTMLText fields in the db, then iterated over all tables (including _Versions and _Live if applicable) and updated row by row... it's not perfect as it does a lookup for the file in the updated File table, but skips the record if no file is returned

muskie9

also, things like alt="" end up as alt="""" once the prepared_query() is executed on the given row/record

StefanO

Hi all, how can I make a folder publish files that are uploaded into it automatically?

StefanO

Or can I just run a command like "INSERT INTO File_Live SELECT * FROM File WHERE parentID = {FolderID};"

null

I have a CWP build that seems to be calling "dev" during dev/build:

  1. ...
  2. * UnpublishItemWorkflowAction (<removed>)
  3. * SubmittedFileField (<removed>)
  4. SILVERSTRIPE DEVELOPMENT TOOLS
  5. --------------------------
  6.  
  7. You can execute any of the following commands:
  8. ...

Any ideas what might be causing this?