[#1209] Meaning of api properties

Migrated from Redmine #1209 | Author: Ngoc Phung
Status: Closed | Priority: Normal | Created: 2024-04-10


Hello, on REST API /admin/providers and /admin/services/, there are is_visible and is_active properties.

I understand is_visible should be the status of the services/ providers if they are being hidden or not.

But I am not sure what is is_active? How to get is_active == false? Will there be any case that a service/ provider has is_active == false BUT it_visisble == true?

Dmytro Bondarev wrote:

Hi,

If you make booking and then remove service/provider.
Then in details of the booking you will see this service/provider, but is_active will be false.
There is no way to receive list of such services/providers.

Ngoc Phung wrote:

so, may I confirm, once is_active is false, is_visible should always be false?

Dmytro Bondarev wrote:

No, is_visible is flag for service or provider.
If service is not active anymore it does not mean that some other information will be changed.

Ngoc Phung wrote:

hmm, I am just asking about service and provider (mentioned above REST API /admin/providers and /admin/services/)

and my question is, if service or provide has is_active: false, does it mean is_visible will always be false as well?

I am not asking about bookings or anything else, I am only asking about service/ provider data returned by REST API /admin/providers and /admin/services/

Dmytro Bondarev wrote:

and my question is, if service or provide has is_active: false, does it mean is_visible will always be false as well?

No

Ngoc Phung wrote:

ohhh, may I ask how to create the case when service or provider has is_active: false but is_visible: true?

Redmine Admin wrote:

ohhh, may I ask how to create the case when service or provider has is_active: false but is_visible: true?
If you make booking and then remove service/provider.
Then in details of the booking you will see this service/provider, but is_active will be false and is_visible will be true