plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Button short-codes replace entire wiki page

Open jywarren opened this issue 7 years ago • 4 comments

After #4965 #5058, we have this nice new shortcode for making buttons, and it's well-tested too!

Unfortunately I tried it out and it seems to replace the whole page, not just the code we found. I think it needs a small tweak to work properly! We might start by checking in the tests to assert that the whole page wasn't replaced.

Here are 2 button codes I tried:

[button:Add an activity:/post?tags=activity:coqui-usage,coqui,water-quality,seeks:replications&title=How%20to%20do%20X]  or request an activity guide you don't see listed

[button:Add an activity:/post]  or request an activity guide you don't see listed

This can be tested on https://stable.publiclab.org on any wiki page!

jywarren avatar Mar 30 '19 01:03 jywarren

@jywarren It looks fine to me. Can you point out the issue if it persists in the image. Screenshot from 2019-04-05 16-23-39

Anupam-dagar avatar Apr 05 '19 10:04 Anupam-dagar

Oh, i reverted it -- you can test it out yourself by adding the button shortcode to a wiki page, and then you'll see that the whole page is replaced, not just the button shortcode... does that make sense? Thanks!!!

On Fri, Apr 5, 2019 at 6:55 AM Anupam Dagar [email protected] wrote:

@jywarren https://github.com/jywarren It looks fine to me. Can you point out the issue if it persists in the image. [image: Screenshot from 2019-04-05 16-23-39] https://user-images.githubusercontent.com/21174572/55622938-39b45380-57bf-11e9-9e77-86cd6bfc8578.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/5309#issuecomment-480233595, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ0ow5HFjBOR8nRm6kSHG2y75QcOcks5vdytegaJpZM4cTdl- .

jywarren avatar Apr 05 '19 21:04 jywarren

@jywarren can I work on this issue?

swathi-0901 avatar Nov 09 '19 10:11 swathi-0901

Sure, i think the first thing is to investigate a bit why this is happening. We could write a system test as well, to reproduce the issue?

On Sat, Nov 9, 2019 at 5:40 AM Swathi Kasikala [email protected] wrote:

@jywarren https://github.com/jywarren can I work on this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/5309?email_source=notifications&email_token=AAAF6J45OB6G2KAVWSARI43QS2HRDA5CNFSM4HCN3F7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDUDCBA#issuecomment-552087812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF6J5MNEK7H6XJCAL4UBDQS2HRDANCNFSM4HCN3F7A .

jywarren avatar Nov 25 '19 19:11 jywarren