-
-
Notifications
You must be signed in to change notification settings - Fork 18
Check for breaking features in books and write version requirements (BL-6661) (4.4+) #2851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for breaking features in books and write version requirements (BL-6661) (4.4+) #2851
Conversation
JohnThomson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question and possible fix...also, it might be easier to merge the first commit into 4.3, then merge 4.3 into 4.4, and then do a 4.4 PR that only has the extra stuff. Having the same changes independently in 4.3 and 4.4 may make merging difficult...certainly will if they aren't exactly the same.
Reviewed 9 of 9 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @sujeffreyl and @hatton)
src/BloomExe/Book/HtmlDom.cs, line 1830 at r1 (raw file):
public bool DoesContainNarrationAudioRecordedUsingWholeTextBox() { var nodes = _dom.SafeSelectNodes("//*[@data-audiorecordingmode='TextBox']");
I think it might be worth checking that the problem nodes actually have recordings. Or is it dangerous anyway? e.g., if they open a page that is marked TextBox in Bloom 4.3 (but has no recording) and record audio (at sentence level), it could come back to 4.4 with BOTH kinds of markup...what will 4.4 do then? Delete the sentence recordings?
jsubloom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, i'll re-do another PR for 4.4 later using the proposed workflow
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @sujeffreyl and @hatton)
src/BloomExe/Book/HtmlDom.cs, line 1830 at r1 (raw file):
Previously, JohnThomson (John Thomson) wrote…
I think it might be worth checking that the problem nodes actually have recordings. Or is it dangerous anyway? e.g., if they open a page that is marked TextBox in Bloom 4.3 (but has no recording) and record audio (at sentence level), it could come back to 4.4 with BOTH kinds of markup...what will 4.4 do then? Delete the sentence recordings?
Maybe the best fix is 2 part:
- to only block if the nodes have actual audio recording
- If an acceptable book is opened, 4.3 should setAttribute data-audioRecordingMode to Sentence. I think this will be cleaner than having 4.4 versions and later attempt to recover.
Another question...
Do we care about 4.2 compatibility?
JohnThomson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @JohnThomson and @hatton)
src/BloomExe/Book/HtmlDom.cs, line 1830 at r1 (raw file):
Previously, sujeffreyl wrote…
Maybe the best fix is 2 part:
- to only block if the nodes have actual audio recording
- If an acceptable book is opened, 4.3 should setAttribute data-audioRecordingMode to Sentence. I think this will be cleaner than having 4.4 versions and later attempt to recover.
Another question...
Do we care about 4.2 compatibility?
I don't think so. Our expectation is that people who want to use the new feature will have 4.4. We're trying here to do the minimum that will prevent them disastrously shooting themselves in the foot if they try to work on a book with mixed versions. In view of that, it was probably unwise for me to suggest the added complication even if it wasn't dangerous unless there's a recording. Since it might be, all the more so.
There's not much we can do about 4.2 compatibility. By the time 4.4 goes beta and this situation is likely to affect users, 4.3 will be released. People with 4.2 who are updating will get 4.3, which has the warning. People who are not updating we can't protect. There's no upgrade path from 4.2 to a later 4.2 once we release 4.3.
|
Closing without merging. Use #2855 instead which has cleaner version history with the changes made in 4.3. |
Prevents a book from being opened if it contains features incompatible with old versions of Bloom.
This pull request should target 4.4 and master.
Commit #1 is identical to the pull request targeting 4.3, so only Commit #2 is different.
This change is