-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.1] Joomla-Accessibility Checker (jooa11y). #36190
Conversation
media folder web assets hard coded until we decide on npm or not to install check out this branch npm run build:js npm run build:css discover install the plugin todo - aka brian needs help [] make the checker start [] make the checker use the settings from the plugin
* Add some enhancements * Fix wrong name Co-authored-by: Benjamin Trenkle <[email protected]>
This reverts commit 4eb15800ccc4bb0d64580013b58a92505bc5abfc.
really? whenever i have said that the update scripts should be immutable you have always said it doesnt matter as they all get checked |
@brianteeman It has nothing to do with the database checker. It is about the installer only running those update SQL script which have a version in their name which is newer than the schema version saved in database. |
P.S. and your files have a date older than the ones which have been added by other extensions and are already released. |
P.P.S.: Child templates was 4.1.0-2021-11-28.sql, so that will be the schema version in db for a 4.1-beta2. |
P.P.P.S: So scripts 4.1.0-2021-11-26.sql will not be run when updating a beta 2 to a beta 3. |
Clear now? |
even more proof that the sql located in com_admin must be immutable |
It seems you still do not understand how the updater works and how the db checker works. Anyway, I won't waste anymore time to try to explain it to you again and again. I will fix the issue instead. |
P.S.: This "immutable" discussion has absolutely nothing to do with the issue because as I clearly explained, your scripts haven't been released yet and haven't been even included in a nightly build yet, so they are definitely not immutable and can and should be changed. |
@brianteeman The CONTENT of the update SQL scripts is immutable. However, this has nothing to do with what @richard67 is telling you. The NAMES of the update SQL files are versions. Joomla stores the name of the last update file applies for an extension in the This is a very important feature in Joomla and the reason why updates actually work in the first place! If this was not the case all SQL update files would execute on every update and we could no longer have immutable update file contents. Do keep in mind that Joomla does list itself as a The names of the update SQL files you used are an older version than those which have already been installed by current beta releases. As a result, Joomla will skip over them and jooa11y won't appear installed in the database. So, yes, @richard67 is absolutely correct. I've had to do the same in some of my PRs when the PR was far removed temporary from the merge time and other SQL updates had already been published. In most of my PRs I did not have to do that, even though other updates with later versions were already merged, because there was no officially published version of Joomla which was using these newer version SQL files. |
PR is #36475 (I have to fix the title in a minute). Please test. |
@nikosdion I understand exactly what Richard is saying. My point (which is kind of off topic) is that I have repeatedly been told that the content of those update scripts is NOT immutable and there are regular pull requests which change the content of those scripts |
The content is not immutable because for example if we had added an index in past and later had removed it, it was not possible to add back that index with the same name, and there is no alter index rename command, what a pity. So there were cases in past when we HAD TO comment out lines in old update SQL scripts. I have explained that so often that I am sick of it. We can agree that it would be good if they were immutable. But with our current database checker that simply is not possible. And again, all that has absolutely nothing to do with what I am doing with my PR. |
this pr should not have been merged without this being changed and hopefully the people who have merge access are more careful to check for this in the future. Yes the immutable comment is off-topic but important. So it is interesting that @nikosdion says the content is immutable and you say the opposite |
You can find lots of examples in J3 when we had to disable statements in old update SQL scripts:
|
@brianteeman It is interesting that after all those years now in which I have proven that I never have broken any update or other SQL stuff with my activities but only fixed things which others had broken, you still don't trust me and talk with me as if I was somebody who has no idea about all that stuff or who always messes up things. |
@richard67 a simple Github action could be the answer here. Check if the PR has any new update SQL files and rename them to the current date. Let computers deal with it instead of us fighting over and over (this is the second time we got the dates mismatch in the last 4 weeks)... |
Richard you are misunderstanding me |
@dgrammatiko Yes, that's a good idea. |
@richard67 @dgrammatiko I would be all for making that the default workflow on merging PRs. |
@dgrammatiko @nikosdion Sometimes PRs were rebased e.g. from 4.0-dev to 4.1-dev, so it would be good to adjust not only the date but also the version part of the file name. But that should not be a problem. Version should be taken from target branch of the merge, and date should be the actual date of the merge plus a check if there is already a file with that name and adding a day until no file found, or something like that. Sometimes maintainers are not lazy and merge more than one PR at a day 😄 , and sometimes more than one of these PRs adds an update SQL. Another thing is that sometimes PRs add more than one because they are new features e.g. from GSoC or other SoC projects and during review nobody has said "Please combine the scripts into one". Maybe that should be handled, too, somehow. |
@dgrammatiko Maybe that will be my next project. Currently I'm working on automation of the deleted files and folders lists updates, and am close to finishing it. |
joomla/joomla-cms#30522 + joomla/joomla-cms#32223 + joomla/joomla-cms#31675 + joomla/joomla-cms#35378 + joomla/joomla-cms#35612 + joomla/joomla-cms#35715 + joomla/joomla-cms#35610 + joomla/joomla-cms#35607 + joomla/joomla-cms#35788 + joomla/joomla-cms#35647 + joomla/joomla-cms#35143 + joomla/joomla-cms#36135 + joomla/joomla-cms#35998 + joomla/joomla-cms#36173 + joomla/joomla-cms#36212 + joomla/joomla-cms#36208 + joomla/joomla-cms#36206 + joomla/joomla-cms#36205 + joomla/joomla-cms#36203 + joomla/joomla-cms#36192 + joomla/joomla-cms#36191 + joomla/joomla-cms#36228 + joomla/joomla-cms#36211 + joomla/joomla-cms#36271 + joomla/joomla-cms#36270 + joomla/joomla-cms#36245 + joomla/joomla-cms#36294 + joomla/joomla-cms#36244 + joomla/joomla-cms#36242 + joomla/joomla-cms#36296 + joomla/joomla-cms#36190 + joomla/joomla-cms#36474 + joomla/joomla-cms#36297 + joomla/joomla-cms#36480 + joomla/joomla-cms#36479 + joomla/joomla-cms#36551 + joomla/joomla-cms#36366 + joomla/joomla-cms#36589 + joomla/joomla-cms#36583 + joomla/joomla-cms#36328 + joomla/joomla-cms#36515 + joomla/joomla-cms#36555 + joomla/joomla-cms#36653 + joomla/joomla-cms#36660 + joomla/joomla-cms#36657 + joomla/joomla-cms#36637 + joomla/joomla-cms#35983 + joomla/joomla-cms#36704 + joomla/joomla-cms#36708 + joomla/joomla-cms#36700 +
There are useless escape characters before single quotes in 3 strings.
|
PR here This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36190. |
Jooa11y is an accessibility and quality assurance tool that visually highlights common accessibility and usability issues.
Geared towards content authors, Jooa11y identifies many errors or warnings and provides guidance on on how to fix them. Jooa11y is not a comprehensive code analysis tool - it exclusively highlights content issues.
To see all the features of jooa11y you should visit https://joomla-projects.github.io/joomla-a11y-checker/ and see the examples and tests.
This PR is only for the implementation of the new Joomla-Accessibility Checker (jooa11y) in core. Any issue, bug or question about the actual accessibility checks must be made at https://github.com/joomla-projects/joomla-a11y-checker/issues
### This PR is still a Work In Progress as1. Need to determine the best way to handle translations and none are loaded at this time in the plugin. Perhaps we go down the same path a tinymce? Suggestions welcome.2. There are currently three different ways of activating the checker (see the tests below). Too many? Bad code? Better code? More options? Less options?NOTES
<main>
). This can be changed in the plugin to any other landmark/region- The drone npm error is a known issue Drone failure - requires git #36160Testing
Test 1.
Just like the existing preview button the button is not available until the article is saved
Test 2.
Test 3.
-- (if the url already has a ? add &jooa11y=1 instead)
The inclusion of this checker is a result of the research carried out by the EU funded We4authorsCluster accessibility project that I participated in.
This PR is the result of the combined work of @brianteeman, @bembelimen, @Fedik, @chmst, @carcam