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

Enh #393: Automatically Update end time #397

Merged
merged 4 commits into from
Jul 11, 2023

Conversation

serh-mosk
Copy link
Contributor

No description provided.

@serh-mosk serh-mosk requested a review from luke- June 30, 2023 09:05
@serh-mosk serh-mosk self-assigned this Jun 30, 2023
@serh-mosk serh-mosk linked an issue Jun 30, 2023 that may be closed by this pull request
@luke-
Copy link
Contributor

luke- commented Jun 30, 2023

@yuriimaz Thanks works well for me.

Can we maybe separate the quite complex code for this into its own method/function and add some more comments. Possibly tests would also be good here.

Added changing time test.
@serh-mosk
Copy link
Contributor Author

@luke- Simplified the time change code a bit. I added a test, but for some reason it failed for me precisely when checking the value of the field, which should have changed automatically. Although I tried to implement it in several ways. Very strange, but when I put a delay in the test and made changes manually, everything worked. Maybe you will be able to figure out what the reason is.

@serh-mosk
Copy link
Contributor Author

@luke- I determined the cause of the failures in the creation of calendar events, due to which the tests fail. It is necessary to rollback changes to protected/humhub/widgets/AjaxLinkPager.php Since the parameters of $jsBeforeSend, $jsSuccess, which were deleted in the 202293ab7b3c0e9b2fde4b6eb82d080893462673 - Mon Jul 03 21:30:03 EEST 2023 Gevorg Mansuryan* Enh #6132: Refactor and Remove AjaxButton (#6172) They are needed for the Next button to work in the event creation modal. I do not rule out that they are still needed somewhere

@luke-
Copy link
Contributor

luke- commented Jul 7, 2023

@yuriimaz Thank you for the investigation.

I have searched all modules github.com/humhub & github.com/humhub-contrib and the function of jsBeforeSend & jsSuccess is only used by the Calendar.

Is it possible to find a solution specific to the Calendar module?

@yurabakhtin What do you think?

@serh-mosk
Copy link
Contributor Author

@luke- I think we can try to write similar code directly in the calendar module script.

@luke-
Copy link
Contributor

luke- commented Jul 7, 2023

@yuriimaz Can you please do this? Then this module is also compatbile with the upcoming v1.15

@yurabakhtin
Copy link
Collaborator

@yurabakhtin What do you think?

@luke- Do you still need my help here?

@luke-
Copy link
Contributor

luke- commented Jul 7, 2023

@yurabakhtin No thanks, I think everything is clear

@luke-
Copy link
Contributor

luke- commented Jul 10, 2023

@yuriimaz Is it really enough to simply remove the lines? :-)

@serh-mosk
Copy link
Contributor Author

@luke- When I checked everything was fine. But I checked again with a larger number of invitees to the event, so that pagination appears and when transitioning to another page of invitees, this block replaces the entire content of the modal window. Not sure if it's something to delete, but since it's a blocker, it needs fixing now.

@luke-
Copy link
Contributor

luke- commented Jul 11, 2023

@yuriimaz Thanks looks good. Is it ready or are you still testing?

@serh-mosk
Copy link
Contributor Author

serh-mosk commented Jul 11, 2023

@luke- Already checked, it's ready, should work fine

@luke- luke- merged commit 792fc31 into master Jul 11, 2023
@luke- luke- deleted the enh/393-automatically-upd-end-time branch July 11, 2023 17:39
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

Successfully merging this pull request may close these issues.

Automatically Update end time
3 participants