Skip to content

fix(faq): visibility#13455

Merged
cedric-anne merged 2 commits intoglpi-project:mainfrom
Rom1-B:support_25313
Apr 24, 2023
Merged

fix(faq): visibility#13455
cedric-anne merged 2 commits intoglpi-project:mainfrom
Rom1-B:support_25313

Conversation

@Rom1-B
Copy link
Copy Markdown
Contributor

@Rom1-B Rom1-B commented Nov 30, 2022

In the simplified interface, the list of FAQ articles displayed articles that the user does not have access to (such as unpublished articles).
When you try to open the article, it is not displayed.

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets !25313

@cedric-anne
Copy link
Copy Markdown
Member

I do not know what are correct criteria to use, and it seems that not everyone has same understanding of what we should od (see #13303).

As I said in mentionned PR

I have no opinion about the way to filter things, but we recently had many PRs about this. We should probably add some tooltips next to some fields to clarify how it affects visibility. It could help both end-users and developers.

@Rom1-B
Copy link
Copy Markdown
Contributor Author

Rom1-B commented Dec 1, 2022

This PR only corrects the list of articles, so as not to display articles that are not accessible. I did not change the access check done when opening an article. So I don't think I'm questioning the current logic?

But I agree, that we could add tooltips in GLPI to clarify.

@AdrienClairembault
Copy link
Copy Markdown
Contributor

Same remark as for #13303:

FAQ items are public to everyone (within their entity) that has access to read FAQs. The additional visibility restrictions will have no affect in this case.

Only entity check should be added.

Copy link
Copy Markdown
Member

@cedric-anne cedric-anne left a comment

Choose a reason for hiding this comment

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

See Adrien latest comment.

@Rom1-B
Copy link
Copy Markdown
Contributor Author

Rom1-B commented Jan 5, 2023

I don't share Adrien's point of view, because it would limit the targeting possibilities.

@AdrienClairembault
Copy link
Copy Markdown
Contributor

AdrienClairembault commented Jan 5, 2023

Well it's not my point of view; it's whats written in the documentation.

I also agree that the current behavior is dumb and that it should be changed to cover all possible criteria (and add a real draft / published dropdown reflecting the status, and a specific criteria to allow visibility to anonymous users) but probably not on a bugfix release.

@cedric-anne cedric-anne added this to the 10.0.6 milestone Jan 17, 2023
@cedric-anne
Copy link
Copy Markdown
Member

@orthagh

To finalize this PR, we need to know how visibility rules are expected to be handled.

@orthagh
Copy link
Copy Markdown
Contributor

orthagh commented Jan 18, 2023

Well it's not my point of view; it's whats written in the documentation.
I also agree that the current behavior is dumb

There are not my words in the documentation.
I dislike also this behavior but we must keep the sync between code and doc.

So, if you want to change the behavior, and i agree with that, here is the list of things you must do:

  • change the documentation
  • target the main branch. We shouldn't be careless and push these kind of visibility changes to a bugfixes branch
  • don't forget to add this in changelog

@Rom1-B Rom1-B changed the base branch from 10.0/bugfixes to main January 18, 2023 14:31
@cedric-anne cedric-anne modified the milestones: 10.0.6, 10.1.0 Jan 23, 2023
@cedric-anne cedric-anne mentioned this pull request Jan 25, 2023
@AdrienClairembault
Copy link
Copy Markdown
Contributor

There is also a fix to be done in 10.0.7 if not done already, as discussed above the FAQ in the 10.0 version is missing the check on entities.

FAQ items are public to everyone (within their entity) that has access to read FAQs. The additional visibility restrictions will have no affect in this case.

@cedric-anne
Copy link
Copy Markdown
Member

cedric-anne commented Jan 26, 2023

There is also a fix to be done in 10.0.7 if not done already, as discussed above the FAQ in the 10.0 version is missing the check on entities.

FAQ items are public to everyone (within their entity) that has access to read FAQs. The additional visibility restrictions will have no affect in this case.

Indeed, it has been reported in #12566.

@cedric-anne
Copy link
Copy Markdown
Member

@Rom1-B Could you rebase this?

@cedric-anne cedric-anne requested review from AdrienClairembault and btry and removed request for AdrienClairembault and btry April 20, 2023 15:14
@cedric-anne cedric-anne merged commit cd3029a into glpi-project:main Apr 24, 2023
@Rom1-B Rom1-B deleted the support_25313 branch April 24, 2023 10:00
@Rom1-B Rom1-B mentioned this pull request Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants