Skip to content

docs(ldap): Improve LDAP documentation#1921

Merged
polarathene merged 16 commits intodocker-mailserver:masterfrom
moqmar:documentation/ldap
May 21, 2021
Merged

docs(ldap): Improve LDAP documentation#1921
polarathene merged 16 commits intodocker-mailserver:masterfrom
moqmar:documentation/ldap

Conversation

@moqmar
Copy link
Copy Markdown
Contributor

@moqmar moqmar commented Apr 19, 2021

Description

As discussed in #1902 (comment), this completely overhauls the LDAP documentation and actually explains what most of the variables do. Looking forward to feedback.

Type of change

  • Documentation update
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project (probably?)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (README.md or ENVIRONMENT.md or the documentation)
  • If necessary I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@casperklein casperklein marked this pull request as draft April 19, 2021 15:25
@georglauterbach
Copy link
Copy Markdown
Member

LGTM

Reach back to us when this can be reviewed.

@georglauterbach georglauterbach requested a review from a team April 25, 2021 20:16
@georglauterbach georglauterbach added area/documentation area/enhancement kind/improvement Improve an existing feature, configuration file or the documentation service/ldap priority/medium and removed area/enhancement labels Apr 25, 2021
Copy link
Copy Markdown
Member

@polarathene polarathene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a really nice contribution so far! Thanks for taking the time to contribute this! 😀

I don't know much about LDAP setup myself, but I have some feedback about admonition usage, and minor corrections.

Comment thread docs/content/config/advanced/auth-ldap.md Outdated
Comment thread docs/content/config/advanced/auth-ldap.md Outdated
Comment thread docs/content/config/advanced/auth-ldap.md Outdated
Comment thread docs/content/config/advanced/auth-ldap.md Outdated
Comment thread docs/content/config/advanced/auth-ldap.md Outdated
Comment thread docs/content/config/advanced/auth-ldap.md Outdated
Comment on lines +108 to +110
## LDAP Setup Examples

### Basic Setup
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the intention is to just provide some config snippets here with no other content, you could drop the headings and collapse the admonitions (??? instead of ???+), then an interested user clicks it to expand the config example.

I don't mind either way.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I purposefully expanded the basic setup example, as that's probably what most people are coming for to the documentation. Is that fine or do you think that the example is too long?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with it for the same reason you stated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that we should remove the headers though, or at least make the Kopano header the same level

@georglauterbach
Copy link
Copy Markdown
Member

georglauterbach commented May 4, 2021

What's the status here @moqmar ?

@moqmar
Copy link
Copy Markdown
Contributor Author

moqmar commented May 4, 2021

I've got a lot of stuff to do for university right now, will get back to this next week probably.

@georglauterbach georglauterbach mentioned this pull request May 18, 2021
9 tasks
@wernerfred wernerfred added this to the v10.0.1 milestone May 19, 2021
@georglauterbach georglauterbach modified the milestones: v10.0.1, v10.0.0 May 19, 2021
@moqmar moqmar changed the title WIP: Improve LDAP documentation WIP: docs(ldap): Improve LDAP documentation May 20, 2021
@moqmar
Copy link
Copy Markdown
Contributor Author

moqmar commented May 20, 2021

I'll try to complete those tomorrow, but can't say for sure yet. If you don't hear from me until tomorrow evening, probably don't let this be a blocker for v10.0.0.

@polarathene
Copy link
Copy Markdown
Member

polarathene commented May 20, 2021

Reviewers can now view the new docs page 🎉

Might be a nice improvement if I can find a way to have the workflow link to pages changed/added directly.

@wernerfred wernerfred mentioned this pull request May 20, 2021
3 tasks
@wernerfred
Copy link
Copy Markdown
Member

wernerfred commented May 20, 2021

@polarathene shouldn't we see a new comment after this new commit?
The deployment went through and is updated according to action log but no new comment was added here

EDIT: Ah I see that the bot edited the comment. Was this only bc his comment was the last one or is this the default behaviour? Just asking bc if there is a lot of discussion it would be nice if the new deployed preview is the most recent comment. We'll see with further updates here how it behaves.

EDIT2: Now bot updated the comment a thrid time

EDIT3: the action hast multiple input options: https://github.com/marocchino/sticky-pull-request-comment#inputs
I think we need recreate

@polarathene
Copy link
Copy Markdown
Member

EDIT: Ah I see that the bot edited the comment. Was this only bc his comment was the last one or is this the default behaviour? Just asking bc if there is a lot of discussion it would be nice if the new deployed preview is the most recent comment. We'll see with further updates here how it behaves.

@wernerfred This was intentional by me. The existing comment is edited each time with the latest commit. The deployment URL is always the same (I don't think we have much reason to create a new one for each commit update to a PR?).

If the action was updated to be compatible with workflow_run, then we should also see a new deployment status each time added with a "View Deployment" button, but as the action isn't aware of the correct commit and PR it doesn't get added here atm. You can see a log of deployments here.

I'll look into the recreate comment behaviour on my test repo and then provide a review for your PR.

@wernerfred
Copy link
Copy Markdown
Member

I'll look into the recreate comment behaviour on my test repo and then provide a review for your PR.

I already added a pr #1992 have a look

@wernerfred This was intentional by me. The existing comment is edited each time with the latest commit. The deployment URL is always the same (I don't think we have much reason to create a new one for each commit update to a PR?).

I am thinking of PRs that get a lot of discussion going on (we had a bunch with 50-100 comments+) then it is super useful to have the preview link always at the end where the latest commit was.

On PRs with less comments and discussion then recreating (deleting old and adding new although the link stays the same) doesnt disturb either as one would not see a difference as the old one gets deleted. And a notification is send either way if there is only a new commit or a commit + a comment

Comment thread docs/content/config/advanced/auth-ldap.md Outdated
Comment thread docs/content/config/advanced/auth-ldap.md Outdated
@polarathene polarathene dismissed wernerfred’s stale review May 20, 2021 23:45

Outdated, already applied.

polarathene
polarathene previously approved these changes May 20, 2021
@polarathene polarathene requested a review from wernerfred May 20, 2021 23:46
wernerfred
wernerfred previously approved these changes May 21, 2021
Copy link
Copy Markdown
Member

@wernerfred wernerfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻
Thanks for your contribution!

@moqmar moqmar dismissed stale reviews from wernerfred and polarathene via ca8fd36 May 21, 2021 07:33
@georglauterbach
Copy link
Copy Markdown
Member

@polarathene Feel free to merge this when you have approved it :D

@github-actions
Copy link
Copy Markdown
Contributor

Documentation preview for this PR is ready! 🎉

Built with commit: d15936a

@polarathene polarathene merged commit 44622e6 into docker-mailserver:master May 21, 2021
@polarathene
Copy link
Copy Markdown
Member

Thank you very much for taking the time to put all this together @moqmar ! 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation kind/improvement Improve an existing feature, configuration file or the documentation priority/medium service/ldap

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants