SemanticMediaWiki / SemanticFormsSelect

Allows to generate select form elements with queried semantic values
https://www.mediawiki.org/wiki/Extension:SemanticFormsSelect
Other
6 stars 13 forks source link

SFS broken on RunQuery results page #60

Open Rudloff opened 7 years ago

Rudloff commented 7 years ago

Hello,

I am using SFS 2.1.0, PF 4.1 and MW 1.28.1.

When displaying the results from a Special:RunQuery page, SFS does not seem to work at all on the form that is displayed after the results.

Rudloff commented 7 years ago

You can reproduce that on the sandbox here: https://sandbox.semantic-mediawiki.org/wiki/Sp%C3%A9cial:RunQuery/DemoAjax1

  1. Select Project2 as Project one
  2. Select Protocol42
  3. Select another project as project twi
  4. Run query
  5. Try to select another protocol
kghbln commented 7 years ago

Thank you for reporting.

Current environment on sandbox which is basically identical:

kghbln commented 6 years ago

@Rudloff the example on sandbox is returing a "Dumb" template so I do not know what the expected result is and if this issue was resolved with SFS 3.0.0. It will be nice if you could test and report back.

Rudloff commented 6 years ago

It still does not work correctly on the sandbox.

The returned template does not matter. The problem is in the Additional query part. The protocol list becomes empty after the first query.

kghbln commented 6 years ago

Thanks for reporting back.

@toniher @gesinn-it You are my best shot for people being able to tackle this issue.

toniher commented 6 years ago

@Rudloff I see. As it is now, you need to trigger a change project event to regenerate protocol list, and I imagine this decreases usability for many situations when using RunQuery. I will take a look.

krabina commented 3 years ago

I see the same behaviour here, however, I was trying to use it with PageForms 5.2 which probably also does not work (yet).

krabina commented 3 years ago

Sorry, please forget my comment above. On the contrary, It seems to be working with PageForms 5.2 in query forms.

kghbln commented 3 years ago

@krabina Could you post your version setup for others to have a reference? This issue has been sitting here for quite some time and it will be great to get an update here.

krabina commented 3 years ago
component version
MediaWiki 1.35.0
PHP 7.4.16 (cgi-fcgi)
MySQL 5.7.32-log
ICU 63.1
Page Forms 5.2 (534b24c) 09:32, 19. Feb. 2021
Semantic Forms Select 3.0.0 (a8a2653) 13:14, 5. Okt. 2018
Semantic MediaWiki 3.2.3

I am not sure I 100% understand the initial bug report. I can just say I tried using SFS in a query form in this envoronment, wich worked.

kghbln commented 3 years ago

Thanks!

I am not sure I 100% understand the initial bug report. I can just say I tried using SFS in a query form in this envoronment, wich worked.

Just looked at the example provided with https://github.com/SemanticMediaWiki/SemanticFormsSelect/issues/60#issuecomment-294957839. To be honest the situation deteriorated even more. This is about using Special:RunQuery.