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

rrules exceptions not managed #18

Open
sherpadawan opened this issue Jul 20, 2020 · 17 comments
Open

rrules exceptions not managed #18

sherpadawan opened this issue Jul 20, 2020 · 17 comments

Comments

@sherpadawan
Copy link

In case of a recurrent event, exceptions are notre managed.
I personnally did not succeed in displaying exceptions and not the event of the chain.

@wernerjoss
Copy link
Owner

you are right with that: EXDATE/EXRULE are not yet supported.
and, to be honest, this whole rrule thing never had much priority for me, as I don't need it for my personal use 😄 .
I just implemented basic rrule support upon user request so far.
so, l'll put this on the TODO list and have a closer look when I have time, but no guarantee when this will happen.
If you want to pick this up and come up with a solution in the meantime, I'll be glad to merge that.
cheers
Werner

@sherpadawan
Copy link
Author

Ok but I think it is a tricky develpement since some calendar ics files do not have EXDATE value ...

@wernerjoss
Copy link
Owner

yes, that seems so - and I do not remember any ICS file with such an entry 😄 .
additionally, same holds for EXRULE, which is a whole rule set inside.
as said, I'll look into it when I have time.
in the meantime, I'm sure 99% of the grav fullcalendar users will not even notice this missing.

@sherpadawan
Copy link
Author

I finally rewrite a big part of the plugin :

  • ical expander integration of rrule integration
  • jquery replacement by superagent node module
  • more settings passed by the plugin to javascript (need to filter nore precisly for security reason)
  • ics : page files, and http files supported (Shortcodes removed as it is not a good pratice)
  • development : assets is a webpack project

Still need some work on the plugin. But take a look to my fork.

Regards.

@wernerjoss
Copy link
Owner

wernerjoss commented Aug 13, 2020

@sherpadawan : yes, your fork seems to be a big rewrite 😄 .
I just took a quick look and installed it on a docker instance to check it out.
installed grav events and taxonomy plugins, which seem to be necessary, created a calendar page and dropped an ics file in it.
calendar grid is then displayed, but in console I get this:
grafik
now I'm not sure if this is due to missing/wrong configuration, I'll have a closer look next week, as I don't have more time ATM.
cheers
Werner

@sherpadawan
Copy link
Author

sherpadawan commented Aug 25, 2020 via email

@sherpadawan
Copy link
Author

sherpadawan commented Sep 2, 2020 via email

@wernerjoss
Copy link
Owner

ok, I just pulled the new version, added the mentioned taxonometry to the calendar page (not a modular page),
dropped a calendar ics file in the content area, then I get this:
grafik
btw., I'm still on Grav 1.6.26.

@sherpadawan
Copy link
Author

sherpadawan commented Sep 3, 2020 via email

@sherpadawan
Copy link
Author

sherpadawan commented Sep 3, 2020 via email

@wernerjoss
Copy link
Owner

Ok, now I can see a Calendar 😄
but only the last one, if I add more than 1 ics File - so currently, there can be only one calendar file per page.
old css does not work either, this is expected, as fullcalendar.io v5 has different classes than fc4.
show description/summary on hover is also not working, nor follow links when clicked on event that has an URL
(instead, there is a stale event entry just to the right).
but these are minor issues, I think.
I have now created an new branch, fc5, where I want to merge your version and see how I can get things like
month picture, legend... to work.
if you like, we can then collaborate on this branch until it is ready to replace master branch.
one big issue before we can do that is provide a (hopefully) automatic migration procedure for users of the current version.
just replacing the old plugin with fc5 branch will brick current users pages because of shortcuts no longer working, which is a no-go, IMHO.
what do you think ?

@sherpadawan
Copy link
Author

sherpadawan commented Sep 6, 2020 via email

@sherpadawan
Copy link
Author

sherpadawan commented Sep 6, 2020 via email

@wernerjoss
Copy link
Owner

Ok for the fc5 branch.

ok, can you please create a new pull request for fc5 branch ?
I will then merge and then we can start from there.
I'll answer to your other reply tomorrow.
slt
Werner

@wernerjoss
Copy link
Owner

I think it will be better to just replace fc5 now with current state of your fork, and then add things from master as appropriate, as due to too many incompatible differences, a merge would not result in anything useful anyway.
what do you think about this ?

@sherpadawan
Copy link
Author

I made a mistake, you can reject the README change on your repo... I thought I was on mine.

@wernerjoss
Copy link
Owner

hello again,
after awhile of no activitiy on the project, I have now released an new version: 0.2.6.
I like your idea of just drop ics file(s) - yes, more than one 😄 - in the calendar page, so it is now implemented.
I retained however the shortcode method, as dropping this would break the pages of existing users, which is a no-go.
another of your proposals: rip out the javascript code from the templates into extra javascript files, has also been implemented.
next step will be looking into replace fc4 with fc5, and eventually assets as a webpack project, using the 3rd party libraries you already proposed to fix the rrules exceptions.

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

No branches or pull requests

2 participants