-
Notifications
You must be signed in to change notification settings - Fork 22
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
Deprecate periods in staticSearch classes #149
Comments
I responded to this from my phone but nothing got through, so I'll try again: I think I'd like to keep the full staticSearch term in the classNames because it helps clarify the purpose of those meta elements for anyone reading the code of the pages. I'm fine with underscores or camelCase. I don't think we can convert any existing syntax in the user's own pages, because we're not supposed to be changing them at all (with the exception of the search page itself, of course). I think it's fine to warn about the problem, though. Another option would be to make the next version 2.0, as an additional flag to say that there are significant changes. We can still have elegant deprecation and warning, but we could remove that from a future version. |
That sounds fine with me—it'll be easier to switch, too. Let's do underscores: it will be trivial for people to change if they need to and it will make the internal switch easier too.
We would do this in the tokenizing templates when we're passing through the documents and removing stuff, etc. So during the clean up stage, we would switch all of the
That's true; I guess we haven't really set parameters for what constitutes a major version versus a minor one. I suppose the addition of a new filter type (in #84) could justify bumping up to 2.0. |
Started a new branch for this in iss149-deprecate-periods |
Ah, I see what you mean now -- not changing the actual documents, just changing the cleaned-up versions. Makes perfect sense. |
… fail, which is expected (though a bit mysterious to me.)
… since we're using underscores now
…hen fixing up some documentation while I was in the file.
As far as I can tell, branch iss149-deprecate-periods is now ready to be tested on some projects. I'm going to test on WEA soon (not today, but hopefully tomorrow). Summary of changes:
|
Thanks Joey! I'll switch it into a couple of projects and we'll see what happens. |
I've kicked off builds of Keats and Graves to test the branch. |
Great! One interesting thing to note per our earlier conversation about the CSS: I didn't change any of the staticSearch CSS, since it didn't have any rules for the |
Graves and Keats both appear to be unchanged. I would say you can merge this into dev and we'll deal with the fallout in other projects. I expect MyNDIR will have some things to fix, but that build is broken right now anyway by something unrelated. |
This is now merged into |
…cs/search to the gitignore (and removing the cached files), which seemed to slip by in #142
I think this is all good now, so closing. |
As @martindholmes notes in #84:
[...]
I agree that it's worth doing. A few questions:
What should the periods be replaced by? Should we simply move to camel case (i.e.
staticSearch.desc
->staticSearchDesc
) or should we make all of the classes align with thessTYPE
syntax that we use for the filter JSONs etc? (i.e.staticSearch.desc
->ssDesc
)?For 1.3, I think we should have a template in the document parsing that finds any staticSearch. and converts it to the syntax we decide with a large WARNING. For 1.4, we could change that warning to an ERROR.
We'll also have to go through our CSS and JS to make sure all of the default styling uses the proper classes etc.
The text was updated successfully, but these errors were encountered: