-
Notifications
You must be signed in to change notification settings - Fork 36
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
add change manager #53
Comments
Here, https://github.com/yu-i-i/overleaf-cep/, you can find a patched version of Overleaf with LDAP authentication and a change tracking feature. For LDAP, I used your code but modified it to use passport-ldapauth. The environment variables for LDAP configuration now correspond to those in Overleaf Pro, with one exception: instead of OVERLEAF_LDAP_NAME_ATT, I use OVERLEAF_LDAP_FIRST_NAME_ATT. Additionally, I rewrote the LDAP contacts as a module without changing the original code. The change tracking feature works mostly as expected. There is one minor glitch (see comments in the code). I’m not a programmer, just an Overleaf user, and I don’t intend to develop this code further. However, if someone else wants to continue, that would be great. For example, adding features like templates or Dropbox integration (or even Nextcloud). |
Thx @yu-i-i ! Notes : (to myself)
Lets see that the 5.0.6 branch will close Issue #50, #53 and Pull Request #51 |
@yzx9 do you have time to look at the 5.0.6 branch ? |
@smhaller Apologies for the delay, I reviewed your new branch and comments. I didn't find breaking change, but I suggest splitting the changes into multiple PRs to simplify the review process. We can bump to 5.0.6 first and then add the other changes. |
ldap-overleaf-sl/ldap-overleaf-sl/sharelatex_diff/router.js.diff Lines 6 to 13 in 8eaaf5e
Disabling the login page may result in an infinite redirection loop. If the OAuth2 login fails, the user is redirected from To address this issue, we need to add an error page that displays the error message and provides a link for the user to try the OAuth2 login again. |
Here we found out that in images up to version 5.0.7 the old API is used. Starting from version 5.1.0, the new API is used. In Overleaf git code the new API is used already about half a year. In order to make comments feature to work properly in 5.0.6, the following changes have to be done: In TrackChangesRouter.js:
In TrackChangesController.js:
|
I had a quick look:
I think one should not enable this at the moment. It does not even work in one session (or better if you enable just the TrackChanges I had following behaviour:
now if one reloads the Project you get again the field/box where you can Accept or Reject the changes.
Only if you Reject you can get rid again of the field/box.
In general I think following has to be done if one wants to enable the Track Changes and Comments Feature:
First one has to add all route in route.js
For example:
Missing routes I have seen so far:
/project/:project_id/changes/accept
/project/:project_id/threads
/project/:project_id/thread/:thread_id/messages
/project/:project_id/thread/:thread_id/resolve
/project/:project_id/doc/:thread_id/changes/accept
/project/:project_id/ranges
/project/:project_id/track_changes
/event/rp-comment-resolve
Second one has to adapt at least the ChatController.js
and add the missing code between the ChatController and the ChatApiHandler.js
Be aware the following Code is not working yet (the reason why I post it in a comment and not push it in some branch in the repo):
and maybe some more
Conclusion
It would be really cool if someone could have a look into this - but I also think this is a bit of work (but I think it is possible because the API/backend code seems to be there
The text was updated successfully, but these errors were encountered: