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

Merging latest changes from ContactPage #1

Open
wants to merge 358 commits into
base: master
Choose a base branch
from

Conversation

jeffw16
Copy link
Member

@jeffw16 jeffw16 commented Jan 30, 2021

No description provided.

@jeffw16 jeffw16 self-assigned this Jan 30, 2021
translatewiki and others added 29 commits June 9, 2022 08:16
Change-Id: I40aa5a9eac3d8b19bcab54e8a9461cced248fd6d
Change-Id: Ibfd5c958086af4ba6a56cc7b5d405faf750ac845
Change-Id: Ieede2a7ea2052a790388558335e67843b0946002
Change-Id: If195e37fee1d609942735bd3da22ccfc38549fec
Change-Id: I4eccf00af55b8322f6e1e943c1accbadbb438588
Change-Id: I701dcf3ce7936e36cfa1cff807c3ba564c5901f6
Change-Id: I7ffda62c216c60da7fb8584b90eee36079efbe19
Change-Id: I802530128a2ede837e1d8ae88f1d71072ec383bb
Bug: T314408
Change-Id: I772cbb7105054e5a288263e6d3962753a10dda58
Change-Id: I591026987795d1601e0afd92a1c5a22d4a20984b
Change-Id: I8d7a78c9dd2972bb287376155417ea5a618dbf50
Change-Id: I0ccf74ecc7ca7e8f3a578e1801d8a3ea20be9b8c
Change-Id: Ic795b92d54b07e82dcc18d43e7c78b8d233ccd2d
Change-Id: Id1c13c33f281235f3b323135009ff10b4925f5b5
Change-Id: I50d4ddd554ee638899d3777c1f17fcb988f9699d
Change-Id: I5ac8b7a3b3b5b34bede9a05145b9853f12999394
Change-Id: I73b68f8bb09fb06619817f01412b976d5464ba26
Change-Id: Ifec5836f3c09243545d7492173a359b7199906f7
Change-Id: Iddaff28fa3580cb0c8449dfcbe92853f93232071
Special:Contact does work quite a bit differently than
Special:EmailUser, most importantly the sender is usually just something
like "Contact Form on Meta".

Therefore it makes little sense to use the normal EmailUser hook,
if an extension wants to prevent a user from using a contact form,
it should implement the ContactForm hook.

Bug: T316661
Change-Id: I51eb58e6f188f8db558deb3a220897e60912031e
Change-Id: I055c1f7b5f9322ebae04a8fdca7dd1aa5556586e
Change-Id: Icc57a0e98d9090509a8ec9b1defb892117dcaf1a
Change-Id: I3ecf7e28eaf594c2a6ff7a4e028628ccf86ed1e3
Change-Id: Ic132427bae45c287786945a38465322bc94b5f64
Change-Id: I5b6db1fe2dddc0e61a0f63cf3c781e54502cb396
Change-Id: I35478d610a2f987f100cb39f0a90f15429243acb
Change-Id: I598abbf0e2d99bd27ffac92eb093f9f0156f30a1
Change-Id: I9596accf38ce15816d8036e6f4df005634ffa7e8
* GHSA-f8q6-p94x-37v3

Change-Id: Ia93769e016a22708750e0b896249473c80dc0492
translatewiki and others added 30 commits October 21, 2024 18:17
Change-Id: I34d3360e3e439bf8a467b9ccdadeddc19d3caea7
SpecialContact::execute has become so long overtime, this patch breaks
it to make further refactoring and maintenance easier. Two major
actions the method handles are now moved to individual private methods.

1. ::checkFormErrors(): This method now handles all permission and form
misconfiguration errors check except for site-wide 'email disabled'
error check which needs to happen at the very beginning of execution.

2. ::getFormFields(): HTMLForm descriptor building logic has been
moved to this method

Bug: T377122
Change-Id: I0fd10f59027f823e8230b185c5874b28b66f1a3b
Change-Id: I28be3047a334542b962e33602631d57c7be3b2c8
Change-Id: I0750a3327df1b42bb85cbed4dc82f5e551f6e5e6
Change-Id: I2a179fe91e3c62b8934569b7f0df495cdbcf6592
This reverts one of the changes from commit 068fbc6 to satisfy
with the requirements in the phab task. See T335962#10283428 for
use cases for Stewards which benefits from having this generated-name
for temporary accounts.

Bug: T335962
Change-Id: Id287d76f73e56e9fb5b218bfc324018f5de949b6
Change-Id: I9de62bf63ff1f497907e4d573d42123d2683c8ce
Change-Id: Ide89169db325f971c27936c66da294a81b19922d
Change-Id: I3640c7850907e6a37032d3ffff56517ab4b86c9a
Change-Id: Ia3eabdf16811d420e8cda9919520a479f8f4435e
Change-Id: I03dcb0da3442429b15cfad7a3c55831b8b7d1b55
Change-Id: I5f2147f143905d0232b2bee03257471653c077a5
Change-Id: I9d201df368e4c9314a76c1839c1ec5311e4aabb4
Change-Id: I3e2867c3a19e369954b3173f8210ad1fd5ab33b6
Change-Id: I0d31994005a83f9ffa3fccd6397bd54560124f62
Bug: T381661
Change-Id: I55cb47246372aa964b15cea72fe06817a962ebdb
Currently Additional form fields defined by a form configuration are
always sandwiched between some stock fields defined by the extension.
These stock fields cannot be removed or moved to another place, despite
the fact that none of them is inherently required for the form to work.

Add MergeStrategy form parameter to allow forms greater control on
placement of their additional fields with respect to the stock ones
as well as redefining or unsetting unwanted stock fields.

Also expand test cases to cover the main features of the parameter:

1. Stock fields can be removed
2. Stock fields can be repositioned
3. Control fields cannot be removed or re-positioned
4. Attributes on Field definition take precedence over
   formconfig-level attributes that do the same thing

Bug: T377122
Change-Id: Iee2639f0d8f6393c73ff178912eb61c15d293e87
SpecialContact needs additional testing, and this commit
expands these tests.

Bug: T381661
Change-Id: I238cd1a6c99be7a438ac7936230bef365d16f181
* mocha: 10.2.0 → 10.8.2
  * GHSA-mwcw-c2x4-8c55
* nanoid: 3.3.3 →
  * GHSA-mwcw-c2x4-8c55

Change-Id: I78d7f915aaf475692dd9e714ab2089491019469a
Change-Id: I9c5fb36bc8af51a4cddddab64ebf593822e19021
Change-Id: I642eb04ed5ebce92fca52c7957eef2c7ea5b7fb1
Change-Id: I03d067e19e4d74eeec78ae995827efea999bf22d
Change-Id: Ie6107730b67c597c64ef7b881e6107ea48eea22a
Return the returned promise from Page.openTitle to the caller

Follow-Up: Idd72732a749ee6657a8617cc0ecc7ab9f6217a69
Change-Id: Iff9bf5220ffcfb8d56284b9070a14d9b0ffea966
Change-Id: I1f1aa1f25ffa35823135f21bce11ac25911f442e
Change-Id: I0c2574fdaf09699301a21c609b3d14758b9a4534
Change-Id: I9cc9ace500f061105ccf05ad2667b42ee81db98b
Change-Id: Ie12c2d924dac8d0d044bf09ed334be39e2cec5e7
Change-Id: I670886808b23fc0b4d86a24c2ffdef1f95bfd25d
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.