Project

General

Profile

Bug #29157

No Rebuild Directory Service Cache button in new UI

Added by Samantha Bonham over 1 year ago. Updated over 1 year ago.

Status:
Done
Priority:
Expected
Assignee:
Vaibhav Chauhan
Category:
GUI (new)
Severity:
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

In Directory Services -> NIS there is a Rebuild Directory Service Cache button next to the save button, here is a screenshot: http://doc.freenas.org/11/_images/directoryservice-nis.png

I don't see this button in the new UI.


Related issues

Has duplicate FreeNAS - Bug #31092: (New UI) Directory Service/Active Directory Missing buttonClosed2018-04-02
Blocked by FreeNAS - Bug #29377: Provide API endpoint for `directoryservice_clearcache`Done2018-03-08

History

#1 Updated by Dru Lavigne over 1 year ago

  • Category set to GUI (new)
  • Target version set to 11.2-RC2

#2 Updated by Samantha Bonham over 1 year ago

Please note the Directory Service -> LDAP and -> Active Directory pages are also missing the "Rebuild Directory Service Cache" button http://doc.freenas.org/11/_images/directoryservice-ldap1.png
http://doc.freenas.org/11/_images/directoryservice-ad1a.png

#3 Updated by Erin Clark over 1 year ago

  • Assignee changed from Erin Clark to Vaibhav Chauhan

#4 Updated by Vaibhav Chauhan over 1 year ago

  • Assignee changed from Vaibhav Chauhan to Timur Bakeyev

do we have an API calls for these items ? I am looking at the docs I can't find any :(

#5 Updated by Timur Bakeyev over 1 year ago

I don't think there is an API for that. Django just hooks it's own call linked to the following code:

def directoryservice_clearcache(request):
    error = False
    errmsg = ''

    os.system(
        "(/usr/local/bin/python " 
        "/usr/local/www/freenasUI/tools/cachetool.py expire >/dev/null 2>&1 &&" 
        " /usr/local/bin/python /usr/local/www/freenasUI/tools/cachetool.py " 
        "fill >/dev/null 2>&1) &")

    return HttpResponse(json.dumps({
        'error': error,
        'errmsg': errmsg,
    }))

I guess it's easier to implement that in middlewared and WS API.

#6 Updated by Timur Bakeyev over 1 year ago

  • Assignee changed from Timur Bakeyev to Vaibhav Chauhan

#7 Updated by Vaibhav Chauhan over 1 year ago

  • Assignee changed from Vaibhav Chauhan to John Hixson

so in that case we need to have api endpoint.

#8 Updated by Vaibhav Chauhan over 1 year ago

  • Assignee changed from John Hixson to Vaibhav Chauhan

#9 Updated by Vaibhav Chauhan over 1 year ago

  • Blocked by Bug #29377: Provide API endpoint for `directoryservice_clearcache` added

#10 Updated by Timur Bakeyev over 1 year ago

  • Assignee changed from Vaibhav Chauhan to William Grzybowski

I think middlewared team can do it quicker and in more consistent manner.

#11 Updated by William Grzybowski over 1 year ago

  • Assignee changed from William Grzybowski to Vaibhav Chauhan

This is the ticket for the UI piece, not middleware.

#12 Updated by Vaibhav Chauhan over 1 year ago

  • Status changed from Not Started to Blocked

#13 Updated by Dru Lavigne over 1 year ago

  • Status changed from Blocked to Not Started

#14 Updated by Dru Lavigne over 1 year ago

  • Has duplicate Bug #31092: (New UI) Directory Service/Active Directory Missing button added

#15 Updated by Vaibhav Chauhan over 1 year ago

  • Status changed from Not Started to In Progress
  • Assignee changed from Vaibhav Chauhan to Lola Yang

#16 Updated by Vaibhav Chauhan over 1 year ago

  • Target version changed from 11.2-RC2 to 11.2-BETA1

#17 Updated by Lola Yang over 1 year ago

  • Status changed from In Progress to Done
  • Assignee changed from Lola Yang to Vaibhav Chauhan

#18 Updated by Dru Lavigne over 1 year ago

  • Target version changed from 11.2-BETA1 to Master - FreeNAS Nightlies
  • Needs Merging changed from Yes to No

Also available in: Atom PDF