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

Remove jquery.highlightsearchterms.js? #1811

Closed
gforcada opened this issue Oct 23, 2016 · 9 comments
Closed

Remove jquery.highlightsearchterms.js? #1811

gforcada opened this issue Oct 23, 2016 · 9 comments

Comments

@gforcada
Copy link
Member

It's the last file on plone_ecmascripts folder: https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/skins/plone_ecmascript/jquery.highlightsearchterms.js

Turn it into a pattern? Do we actually even want that? Opinions?

@jensens
Copy link
Member

jensens commented Dec 22, 2016

if we keep the feature, it should be turned into a pattern, IMO best living in mockup.

@thet
Copy link
Member

thet commented Dec 22, 2016

which is actually super easy to do.
just needs someone to do it.

@hvelarde
Copy link
Member

@rodfersou do you want to take this challenge?

@jensens
Copy link
Member

jensens commented Mar 9, 2017

i played a bit with this and it seems today it is pointless:

  • Since Google's move to secure search over https it does not have a query-string in its document.referrer anymore (so Bing, which we do not cover, but we support Altavista...)
  • plone live search does not have a referrer.

only when coming from detail search highlighting works.

I propose to remove the feature as is (it is just broken).

I started a mockup branch using mark.js (see reference above) - it's just a stub. It would need some love parsing our own query-string. Also, it would need some integration with live-search. If there are any takers...

@zopyx
Copy link
Member

zopyx commented Mar 9, 2018

This bug is a major issue since it disallows the usage of the addPloneSite() which is necessary for creating Plone Site programmatically.

@jensens
Copy link
Member

jensens commented Mar 9, 2018

May you explain why this issue is related to creating a Plone Site?

@jensens
Copy link
Member

jensens commented Mar 9, 2018

Ah, its #2317

@zopyx
Copy link
Member

zopyx commented Mar 9, 2018

Why? Because the error is reproducible with the following code used for created a Plone 5.1.0 site as part of a small provisioning API. The error is reproducible even when you don't pass any extension profiles - naked Plone only.

class API(BrowserView):

    def recreate_plone_site(self):
        """ Recreate a Plone site """

        data = json.loads(self.request.BODY)
        site_id = str(data['site_id'])
        extension_ids = data['extension_ids']

        root = self.context.restrictedTraverse('/')
        if site_id in root.objectIds():
            print 'Deleting Plone site "{0}"'.format(site_id)
            root.manage_delObjects([site_id])

        print 'Creating Plone site "{0}" with {1}'.format(site_id, extension_ids)
        addPloneSite(root, site_id, extension_ids=extension_ids)
        print 'Created Plone site "{0}" with {1}'.format(site_id, extension_ids)

        self.request.response.setStatus(201)
        self.request.response.write('Created')

@zopyx
Copy link
Member

zopyx commented Mar 9, 2018

In addition to that, you end up with fresh, completely broken site layout

screenshot-dynamore zopyx de-5080-2018 03 09-15-36-41

sunew added a commit to plone/plone.app.upgrade that referenced this issue Sep 6, 2018
…- plone_ecmascript skin layer. See https://github.com/plone/Products.CMFPlone/pull/1963/commits and plone/Products.CMFPlone#1811 plone/Products.CMFPlone#1801

removing records (wip)

remove jquery-highlightsearchterms from the plone-legacy bundle

c
sunew pushed a commit that referenced this issue Sep 6, 2018
@jensens jensens closed this as completed in 67c3e67 Sep 9, 2018
jensens added a commit that referenced this issue Sep 9, 2018
fix #1811: Remove last legacy Javascript highlight-searchterms.js
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Sep 9, 2018
Branch: refs/heads/master
Date: 2018-09-06T18:21:00+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@6bab181

remove the jquery-highlightsearchterms resource, and the - now empty - plone_ecmascript skin layer. See https://github.com/plone/Products.CMFPlone/pull/1963/commits and plone/Products.CMFPlone#1811 plone/Products.CMFPlone#1801

removing records (wip)

remove jquery-highlightsearchterms from the plone-legacy bundle

c

Files changed:
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-06T20:23:08+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@c979968

Also remove the jquery-highlightsearchterms resource, and the plone_ecmascript skin layer for plone 5.1.4

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-08T12:26:59+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@0c1c1ee

Update the compilation date of the plone-legacy bundle, to force recompilation

Files changed:
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-09T08:41:13+02:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/plone.app.upgrade@8d8f25d

Merge pull request #170 from plone/remove-highlightsearchterms

Remove jquery-highlightsearchterms and plone_ecmascript layer

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Sep 9, 2018
Branch: refs/heads/master
Date: 2018-09-06T18:21:00+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@6bab181

remove the jquery-highlightsearchterms resource, and the - now empty - plone_ecmascript skin layer. See https://github.com/plone/Products.CMFPlone/pull/1963/commits and plone/Products.CMFPlone#1811 plone/Products.CMFPlone#1801

removing records (wip)

remove jquery-highlightsearchterms from the plone-legacy bundle

c

Files changed:
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-06T20:23:08+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@c979968

Also remove the jquery-highlightsearchterms resource, and the plone_ecmascript skin layer for plone 5.1.4

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-08T12:26:59+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@0c1c1ee

Update the compilation date of the plone-legacy bundle, to force recompilation

Files changed:
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-09T08:41:13+02:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/plone.app.upgrade@8d8f25d

Merge pull request #170 from plone/remove-highlightsearchterms

Remove jquery-highlightsearchterms and plone_ecmascript layer

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Sep 9, 2018
Branch: refs/heads/master
Date: 2018-09-06T18:21:00+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@6bab181

remove the jquery-highlightsearchterms resource, and the - now empty - plone_ecmascript skin layer. See https://github.com/plone/Products.CMFPlone/pull/1963/commits and plone/Products.CMFPlone#1811 plone/Products.CMFPlone#1801

removing records (wip)

remove jquery-highlightsearchterms from the plone-legacy bundle

c

Files changed:
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-06T20:23:08+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@c979968

Also remove the jquery-highlightsearchterms resource, and the plone_ecmascript skin layer for plone 5.1.4

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-08T12:26:59+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/plone.app.upgrade@0c1c1ee

Update the compilation date of the plone-legacy bundle, to force recompilation

Files changed:
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
Repository: plone.app.upgrade

Branch: refs/heads/master
Date: 2018-09-09T08:41:13+02:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/plone.app.upgrade@8d8f25d

Merge pull request #170 from plone/remove-highlightsearchterms

Remove jquery-highlightsearchterms and plone_ecmascript layer

Files changed:
A plone/app/upgrade/v51/profiles/to_514/skins.xml
A plone/app/upgrade/v52/profiles/to_alpha1/registry.xml
M CHANGES.rst
M plone/app/upgrade/v51/configure.zcml
M plone/app/upgrade/v51/final.py
M plone/app/upgrade/v51/profiles/to_514/registry.xml
M plone/app/upgrade/v52/alphas.py
M plone/app/upgrade/v52/profiles/to_alpha1/skins.xml
erral pushed a commit that referenced this issue Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants