Skip to content
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

[codestyle] admin components xml files #15920

Merged
merged 50 commits into from
May 31, 2017

Conversation

brianteeman
Copy link
Contributor

@brianteeman brianteeman commented May 9, 2017

Review all the xml files in the administrator/components folder and make sure they are formatted according to the coding standards

(I had a long train journey)

>
<option value="">JOPTION_SELECT_AUTHOR</option>
</field>
name="author_id"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation isn't right here

<option value="">JOPTION_SELECT_MAX_LEVELS</option>

<field
name="level"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

>
<option value="">JOPTION_SELECT_AUTHOR</option>
</field>
name="author_id"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

<option value="">JOPTION_SELECT_MAX_LEVELS</option>
</field>
<field
name="level"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

name="title"
type="text"
label="JGLOBAL_TITLE"
description="COM_FINDER_FILTER_TITLE_DESCRIPTION"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

label="COM_MENUS_ITEM_FIELD_MENU_TEXT_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_TEXT_DESC"
class="btn-group btn-group-yesno"
default="1" filter="integer"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filter on a new line

@C-Lodder
Copy link
Member

C-Lodder commented May 9, 2017

@wilsonge with the new switcher class and options switched round in the XML files, is this going to be a pita with conflicts when merging into J4?

label="COM_CONFIG_FIELD_DEBUG_SYSTEM_LABEL"
description="COM_CONFIG_FIELD_DEBUG_SYSTEM_DESC"
class="btn-group btn-group-yesno"
default="0"
filter="integer"
>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

label="COM_CONFIG_FIELD_DEBUG_LANG_LABEL"
description="COM_CONFIG_FIELD_DEBUG_LANG_DESC"
class="btn-group btn-group-yesno"
default="0"
filter="integer"
>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

@@ -330,10 +330,10 @@
<field
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fiedset to one line

label="COM_CONFIG_FIELD_FTP_ENABLE_LABEL"
description="COM_CONFIG_FIELD_FTP_ENABLE_DESC"
class="btn-group btn-group-yesno"
default="0"
filter="integer"
>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

@laoneo
Copy link
Member

laoneo commented May 10, 2017

@wilsonge with the new switcher class and options switched round in the XML files, is this going to be a pita with conflicts when merging into J4?

Perhaps making the pr against the J4 branch then?

@Bakual
Copy link
Contributor

Bakual commented May 10, 2017

Perhaps making the pr against the J4 branch then?

That will be the exact same pita 😄
Maybe better revert the stupid change with the switcher class and options switched around in J4 sigh

@wilsonge
Copy link
Contributor

I can deal with the conflicts. Everyone can stop stressing - it's the result of having two versions being dev'd at the same time.

@C-Lodder
Copy link
Member

C-Lodder commented May 10, 2017

I have tested this item ✅ successfully on 51cff1e

code review.

@wilsonge - Fair enough.

@Bakual - So you've said before. Submit a PR if you're not happy


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15920.

@brianteeman
Copy link
Contributor Author

conflicts resolved

<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
</field>

<field name="show_category_title"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move name="show_category_title" to next line.

default="1"
>
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
</field>

<field name="show_description"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to next line.

class="btn-group btn-group-yesno"
default="1"
label="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_LABEL"
description="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_DESC">
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
</field>

<field name="show_description_image"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to next line.

@brianteeman
Copy link
Contributor Author

@Quy don't know how I missed those. Thanks I will update the pr tonight

default="none"
label="JGLOBAL_CATEGORY_ORDER_LABEL"
description="JGLOBAL_CATEGORY_ORDER_DESC">
description="JGLOBAL_CATEGORY_ORDER_DESC"
type="list"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move it under name.

@brianteeman
Copy link
Contributor Author

@Quy thanks for everything on this - seems I didnt do a good job

@Quy
Copy link
Contributor

Quy commented May 28, 2017

I have tested this item ✅ successfully on 6cdfb9e

@brianteeman Thank you!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15920.

Copy link
Contributor

@andrepereiradasilva andrepereiradasilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @brianteeman !
just one or two errors detected and some minor improvements. all the rest seems fine.
ok when this corrected

<field name="order_date" type="list"
default="published"
description="JGLOBAL_ORDERING_DATE_DESC"
description="JGLOBAL_ARTICLE_ORDER_DESC"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default="rdate" is missing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry i dont understand

Copy link
Contributor

@andrepereiradasilva andrepereiradasilva May 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thsi field is the name="orderby_sec" field
before:

<field name="orderby_sec"
type="list"
default="rdate"
label="JGLOBAL_ARTICLE_ORDER_LABEL"
description="JGLOBAL_ARTICLE_ORDER_DESC">

after

<field 
	name="orderby_sec"
	type="list"
	label="JGLOBAL_ARTICLE_ORDER_LABEL"
	description="JGLOBAL_ARTICLE_ORDER_DESC"
	>

so default="rdate" is missing

label="COM_CONTENT_SHOW_PUBLISHING_OPTIONS_LABEL"
description="COM_CONTENT_SHOW_PUBLISHING_OPTIONS_DESC"
default=""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not essencial but i think this can be removed.
there is no option with "" value and uses "useglobal", so the default is the global value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is used in quite a lot of places. i would prefer to leave changing that to another smaller pr where it would be easier to test.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

name="filter_id"
type="text"
label="JGLOBAL_FIELD_ID_LABEL"
descriptio="JGLOBAL_FIELD_ID_DESC"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"descriptio" should "description" (note the last "n")

@@ -84,35 +96,47 @@

<fieldset name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS"
>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you check this one too?

type="textarea"
label="JFIELD_META_DESCRIPTION_LABEL"
description="JFIELD_META_DESCRIPTION_DESC"
rows="3" cols="40"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cols in new line

label="COM_MENUS_ITEM_FIELD_MENU_TEXT_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_TEXT_DESC"
class="btn-group btn-group-yesno"
default="1" filter="integer"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filter in new line

label="COM_MENUS_ITEM_FIELD_MENU_TEXT_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_TEXT_DESC"
class="btn-group btn-group-yesno"
default="1" filter="integer"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filter in new line

@brianteeman
Copy link
Contributor Author

@andrepereiradasilva made some of your changes and commented on two other requests

@andrepereiradasilva
Copy link
Contributor

I have tested this item ✅ successfully on 6cdfb9e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15920.

@Quy
Copy link
Contributor

Quy commented May 31, 2017

I have tested this item ✅ successfully on 6cdfb9e

Code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15920.

@brianteeman
Copy link
Contributor Author

RTC please

@ghost
Copy link

ghost commented May 31, 2017

RTC after two successful tests.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label May 31, 2017
@wilsonge wilsonge merged commit 6c66636 into joomla:staging May 31, 2017
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 31, 2017
@wilsonge wilsonge added this to the Joomla 3.7.3 milestone May 31, 2017
@wilsonge
Copy link
Contributor

Thankyou very much!

@brianteeman
Copy link
Contributor Author

Thanks everyone

@brianteeman brianteeman deleted the xml-code-admin-components branch May 31, 2017 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants