Open-source git integration #21

Open
opened 2024-07-20 23:25:51 +02:00 by Benjamin_Loison · 12 comments

Could search overleaf/issues.

Related to #12 and #20.

+20

Could search [overleaf/issues](https://github.com/overleaf/overleaf/issues). Related to #12 and #20. +20
Author
Owner

Despite having in config/overleaf.rc:

SERVER_PRO=false

let us replace GIT_BRIDGE_ENABLED=false to GIT_BRIDGE_ENABLED=true.

bin/start
Output:
WARN[0000] /home/benjamin/overleaf-toolkit/lib/docker-compose.base.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
WARN[0000] /home/benjamin/overleaf-toolkit/lib/docker-compose.vars.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
WARN[0000] /home/benjamin/overleaf-toolkit/lib/docker-compose.redis.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
WARN[0000] /home/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 3/3
 ✔ Container redis       Started                                                                                                      0.3s 
 ✔ Container mongo       Healthy                                                                                                     10.9s 
 ✔ Container sharelatex  Started

Related to #7.

ls data/
mongo  redis  sharelatex

image

Despite having in `config/overleaf.rc`: ``` SERVER_PRO=false ``` let us replace `GIT_BRIDGE_ENABLED=false` to `GIT_BRIDGE_ENABLED=true`. ```bash bin/start ``` <details> <summary>Output:</summary> ``` WARN[0000] /home/benjamin/overleaf-toolkit/lib/docker-compose.base.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] /home/benjamin/overleaf-toolkit/lib/docker-compose.vars.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] /home/benjamin/overleaf-toolkit/lib/docker-compose.redis.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] /home/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion [+] Running 3/3 ✔ Container redis Started 0.3s ✔ Container mongo Healthy 10.9s ✔ Container sharelatex Started ``` </details> Related to #7. ```bash ls data/ ``` ``` mongo redis sharelatex ``` ![image](/attachments/699c2902-6157-4a6d-b908-1f9133ec15de)
Benjamin_Loison pinned this 2024-07-22 23:30:05 +02:00
Author
Owner

Assuming changes happening once at a time on the Git and online, this feature could quite easily be implemented by notably leveraging the full history feature.

The official feature has a history differing per person, right? This does not seem wanted.

Assuming changes happening once at a time on the Git and online, this feature could quite easily be implemented by notably leveraging the full history feature. The official feature has a history differing per person, right? This does not seem wanted.
Author
Owner
See 31/07/24 internship notes and Slack message to someone maybe having a CLI workaround:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAaqHXD0v2SNf8n9v8WzLdyDfKBSCyhSqirSYzXT7btFIw
diczViWS+CL/vYH+5BC3msWOX3LW1wRvplI1BpxYmFlGB0JnNuBWiGDVNSFkK0Pq
0oABnAvQnTJTr0nZSYevtJh8duae7qHyqGWJwQkhj5FsUxqhel49VXEBzqM5gejH
Pb+3pCy8XpiLgDKK8i/msmcpIDGDJ9iW0gtNVS6L0APNTsSID81dc2ppcngDsKss
ibzn6XZTr7rfS8FYXNi1Z/ceWF/AkydrqYSE/+92oOORPA==
=6/Dq
-----END PGP MESSAGE-----

He answered me:

Salut ! J’ai utilisé ça : https://github.com/JulesColas97/overleaf-sync-plm
J’ai juste testé un peu et il y a eu un bug, et puis j’ai arrêté de l’utiliser. Ce qui m’est arrivé c’est si j’interrompre la synchronisation (e.g. ctrl C) le projet plante, et je ne peux plus restituer la synchro.
Je te conseille de tester cet outil sur un projet de test avant de l’utiliser sur ton projet principal pour ne pas casser ton projet éventuellement.

Related to Benjamin_Loison/overleaf-sync/issues.

<details> <summary>See 31/07/24 internship notes and Slack message to someone maybe having a CLI workaround:</summary> ``` -----BEGIN PGP MESSAGE----- hF4DTQa9Wom5MBgSAQdAaqHXD0v2SNf8n9v8WzLdyDfKBSCyhSqirSYzXT7btFIw diczViWS+CL/vYH+5BC3msWOX3LW1wRvplI1BpxYmFlGB0JnNuBWiGDVNSFkK0Pq 0oABnAvQnTJTr0nZSYevtJh8duae7qHyqGWJwQkhj5FsUxqhel49VXEBzqM5gejH Pb+3pCy8XpiLgDKK8i/msmcpIDGDJ9iW0gtNVS6L0APNTsSID81dc2ppcngDsKss ibzn6XZTr7rfS8FYXNi1Z/ceWF/AkydrqYSE/+92oOORPA== =6/Dq -----END PGP MESSAGE----- ``` </details> He answered me: > Salut ! J’ai utilisé ça : https://github.com/JulesColas97/overleaf-sync-plm > J’ai juste testé un peu et il y a eu un bug, et puis j’ai arrêté de l’utiliser. Ce qui m’est arrivé c’est si j’interrompre la synchronisation (e.g. ctrl C) le projet plante, et je ne peux plus restituer la synchro. > Je te conseille de tester cet outil sur un projet de test avant de l’utiliser sur ton projet principal pour ne pas casser ton projet éventuellement. Related to [Benjamin_Loison/overleaf-sync/issues](https://codeberg.org/Benjamin_Loison/overleaf-sync/issues).
Author
Owner
![Screenshot 2024-11-25 at 23-17-48 MLBrief PRNU extraction - Online LaTeX Editor Overleaf](/attachments/1c3c17b9-a002-4c04-ae2c-1e9e26f83a48) > [Try it for free](https://www.overleaf.com/user/subscription/choose-your-plan) Source: https://www.overleaf.com/project/XXXXXXXXXXXXXXXXXXXXXXXX
Author
Owner

moritzgloeckl/overleaf-sync/compare/master...JulesColas97:overleaf-sync-plm:master looks legitimate, despite being minimized in my opinion see notably Benjamin_Loison/overleaf-sync/issues/1, and moritzgloeckl/overleaf-sync has 323 stars and last commit was 2 years ago. So should first try in a virtual machine environment. I don't have yet a fork of overleaf-sync-plm.

[moritzgloeckl/overleaf-sync/compare/master...JulesColas97:overleaf-sync-plm:master](https://github.com/moritzgloeckl/overleaf-sync/compare/master...JulesColas97:overleaf-sync-plm:master) looks legitimate, despite being minimized in my opinion see notably [Benjamin_Loison/overleaf-sync/issues/1](https://codeberg.org/Benjamin_Loison/overleaf-sync/issues/1), and [moritzgloeckl/overleaf-sync](https://github.com/moritzgloeckl/overleaf-sync) has 323 stars and last commit was 2 years ago. So should first try in a virtual machine environment. I don't have yet a fork of `overleaf-sync-plm`.
Author
Owner

Experimented successfully overleaf-sync-plm.

Experimented successfully `overleaf-sync-plm`.
Author
Owner
Related to [Improve_websites_thanks_to_open_source/issues/1439](https://codeberg.org/Benjamin_Loison/Improve_websites_thanks_to_open_source/issues/1439).
Author
Owner

This feature can be used to have history for other files than the compiled one.

Related to Benjamin-Loison/gitea/issues/99.

As a workaround can create and update a git when change such another file like:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAjQ1ueYIzlPQS6hd+2j4Xa07doqQynrPJ1+v9+2xM9R0w
NPJPtoeGsBRy+WunAbd8RVhjrce41JfSdZAOzRJYAAF/rXBnsk5Qbkai9AUBcp6D
0n4BgVnIzJF9INJULt7Ce0+fJL7XANRhlSCQ6rozaNb/Z4USnznIBNdeyu95Gfs6
RcvQAPpmztlC0icpDN0lNr8reTkpK8N1aU4evafILb0rgntHpPPqDWrjMPYttuOW
dNXuRFoTpxYCW3vWej/8zNaMuNzyFylrSJI9knoKW1A=
=KCN6
-----END PGP MESSAGE-----
This feature can be used to have history for other files than the compiled one. Related to [Benjamin-Loison/gitea/issues/99](https://github.com/Benjamin-Loison/gitea/issues/99). <details> <summary>As a workaround can create and update a git when change such another file like:</summary> ``` -----BEGIN PGP MESSAGE----- hF4DTQa9Wom5MBgSAQdAjQ1ueYIzlPQS6hd+2j4Xa07doqQynrPJ1+v9+2xM9R0w NPJPtoeGsBRy+WunAbd8RVhjrce41JfSdZAOzRJYAAF/rXBnsk5Qbkai9AUBcp6D 0n4BgVnIzJF9INJULt7Ce0+fJL7XANRhlSCQ6rozaNb/Z4USnznIBNdeyu95Gfs6 RcvQAPpmztlC0icpDN0lNr8reTkpK8N1aU4evafILb0rgntHpPPqDWrjMPYttuOW dNXuRFoTpxYCW3vWej/8zNaMuNzyFylrSJI9knoKW1A= =KCN6 -----END PGP MESSAGE----- ``` </details>
Author
Owner

inotifywait may help.

`inotifywait` may help.
Author
Owner
Related to [Improve_websites_thanks_to_open_source/issues/1543](https://codeberg.org/Benjamin_Loison/Improve_websites_thanks_to_open_source/issues/1543).
Author
Owner

overleaf/overleaf
overleaf/overleaf/forks?sort_by=stargazer_counts

yu-i-i/overleaf-cep CE extended with free premium features. Has it a public instance? Caution in README does not seem relevant with Sandboxed Compiles with TeX Live image selection, no?
overleaf-cep/blob/5f27422b3b8def6bdfc5a9fd4c18c45b5dac99ab/README.md#extended-community-edition

The only git issue is yu-i-i/overleaf-cep/issues/58 redirecting to yu-i-i/overleaf-cep/discussions/54 which basically explains that it is hard to deal with feature and it was not managed by the author of this repository.

yu-i-i/overleaf-cep/issues/40 may help.

https://www.overleaf.com/learn/how-to/Git_integration#Known_Limitations should be read.
ungit may help.

[overleaf/overleaf](https://github.com/overleaf/overleaf) [overleaf/overleaf/forks?sort_by=stargazer_counts](https://github.com/overleaf/overleaf/forks?sort_by=stargazer_counts) [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep) *CE extended with free premium features*. Has it a public instance? *Caution* in `README` does not seem relevant with *Sandboxed Compiles with TeX Live image selection*, no? [overleaf-cep/blob/5f27422b3b8def6bdfc5a9fd4c18c45b5dac99ab/README.md#extended-community-edition](https://github.com/yu-i-i/overleaf-cep/blob/5f27422b3b8def6bdfc5a9fd4c18c45b5dac99ab/README.md#extended-community-edition) The only *git* issue is [yu-i-i/overleaf-cep/issues/58](https://github.com/yu-i-i/overleaf-cep/issues/58) redirecting to [yu-i-i/overleaf-cep/discussions/54](https://github.com/yu-i-i/overleaf-cep/discussions/54) which basically explains that it is hard to deal with feature and it was not managed by the author of this repository. [yu-i-i/overleaf-cep/issues/40](https://github.com/yu-i-i/overleaf-cep/issues/40) may help. https://www.overleaf.com/learn/how-to/Git_integration#Known_Limitations should be read. [ungit](https://github.com/FredrikNoren/ungit) may help.
Author
Owner
The person:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdARsDe4Pl7dBEpCQrjOFVAyrl6xrhMsy5tY9B54Qgb2m4w
Rij3PuO9adGRIlgurvCRhOyVivi8mMSDj4GW/u6VQqy4PBzqOFk0s/hJCpaV9QaE
1EsBCQIQ/tvFrFfCCVPrUKx873yJE09Mc+dB8zNx3HckGBdjySaqr1JxIib9/s98
stjtxqfWcnGkrE2P5Sm1fDCI9I6VP/0smQAOsQA=
=t5KC
-----END PGP MESSAGE-----

would also be interested in this feature.

<details> <summary>The person:</summary> ``` -----BEGIN PGP MESSAGE----- hF4DTQa9Wom5MBgSAQdARsDe4Pl7dBEpCQrjOFVAyrl6xrhMsy5tY9B54Qgb2m4w Rij3PuO9adGRIlgurvCRhOyVivi8mMSDj4GW/u6VQqy4PBzqOFk0s/hJCpaV9QaE 1EsBCQIQ/tvFrFfCCVPrUKx873yJE09Mc+dB8zNx3HckGBdjySaqr1JxIib9/s98 stjtxqfWcnGkrE2P5Sm1fDCI9I6VP/0smQAOsQA= =t5KC -----END PGP MESSAGE----- ``` </details> would also be interested in this feature.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Benjamin_Loison/overleaf#21
No description provided.