XML 62 R51.htm IDEA: XBRL DOCUMENT v3.8.0.1
Common Stock - Additional Information (Details)
1 Months Ended 3 Months Ended 9 Months Ended 12 Months Ended
Jun. 30, 2017
USD ($)
$ / shares
shares
May 31, 2017
USD ($)
$ / shares
shares
Jul. 31, 2013
USD ($)
$ / shares
shares
Oct. 31, 2017
USD ($)
$ / shares
shares
Oct. 31, 2016
USD ($)
$ / shares
Oct. 31, 2017
USD ($)
$ / shares
shares
Oct. 31, 2016
USD ($)
$ / shares
Jan. 31, 2014
USD ($)
Employee
Jan. 31, 2008
Jan. 31, 2017
USD ($)
shares
Class Of Stock [Line Items]                    
Shares reserved for future issuance       14,071,161   14,071,161       16,490,604
Common stock subject to repurchase       5,785   5,785       49,234
Common stock subject to repurchase, aggregate purchase price | $       $ 100,000   $ 100,000       $ 500,000
Number of executive employees exercised stock options early | Employee               1    
Number of non-executive employees exercised stock options early | Employee               1    
Additional options of fully vested and exercisable options issued       2,940,235   2,940,235       2,380,167
Proceeds from exercise of stock options | $           $ 470,000 $ 1,459,000      
Additional stock-based compensation | $           37,770,000 10,742,000      
Aggregate intrinsic value of stock options exercised | $       $ 0 $ 1,000,000 $ 600,000 $ 1,900,000      
Weighted-average grant date fair value, Options granted | $ / shares       $ 2.42 $ 16.21 $ 7.97 $ 17.36      
Unrecognized stock-based compensation expense | $       $ 66,500,000   $ 66,500,000        
Weighted average period over which unrecognized compensation is expected to be recognized           2 years 2 months 13 days        
Number of common stock purchase 1,666,665                  
Warrant exercisable period 10 years                  
Warrant exercised price | $ / shares $ 16.44                  
Conversion of convertible preferred stock 7,382,007                  
Additional loan drawn | $       $ 50,000,000   $ 50,000,000        
Convertible Preferred Stock Warrants                    
Class Of Stock [Line Items]                    
Conversion of convertible preferred stock           68,633        
Common Stock Warrants                    
Class Of Stock [Line Items]                    
Shares reserved for future issuance       1,897,562   1,897,562       25,000
Conversion of stock       205,897   205,897        
Warrants exercisable upon additional loan drawn       34,058   34,058        
Loan and Security Agreement                    
Class Of Stock [Line Items]                    
Number of common stock purchase           4,167        
Fair value of warrant | $           $ 27,000        
Warrant to purchase additional common stock     20,833              
Exercise price of warrant | $ / shares     $ 7.80              
Warrant expiration date           May 31, 2023        
Issuance of additional common stock warrant | $     $ 100,000              
Unamortized debt discount written off | $     $ 100,000              
Full-recourse Promissory Note | Executive and Non-executive Employee                    
Class Of Stock [Line Items]                    
Debt instrument principal amount | $               $ 2,200,000    
Full-recourse Promissory Note | Executive Employee                    
Class Of Stock [Line Items]                    
Additional options of fully vested and exercisable options issued   88,520                
Proceeds from exercise of stock options | $ $ 1,000,000                  
Common stock repurchased 88,520                  
Common stock repurchased price per share | $ / shares $ 13.68                  
Additional stock-based compensation | $           $ 500,000        
Partial-recourse Promissory Note | Executive Employee                    
Class Of Stock [Line Items]                    
Debt instrument principal amount | $               $ 6,600,000    
Debt instrument interest rate percentage               1.92%    
Additional options of fully vested and exercisable options issued   501,104                
Proceeds from exercise of stock options | $ $ 6,900,000                  
Common stock repurchased 501,104                  
Common stock repurchased price per share | $ / shares $ 13.68                  
Additional stock-based compensation | $ $ 0                  
New Facility Agreement                    
Class Of Stock [Line Items]                    
Additional loan drawn | $       $ 10,000,000   $ 10,000,000        
Minimum | Full-recourse Promissory Note | Executive and Non-executive Employee                    
Class Of Stock [Line Items]                    
Debt instrument interest rate percentage               1.62%    
Maximum                    
Class Of Stock [Line Items]                    
Number of common stock purchase 1,666,665                  
Maximum | Full-recourse Promissory Note | Executive and Non-executive Employee                    
Class Of Stock [Line Items]                    
Debt instrument interest rate percentage               1.64%    
Performance RSUs                    
Class Of Stock [Line Items]                    
Share-based compensation arrangement by share-based payment award, vesting period           2 years        
2017 Employee Stock Purchase Plan                    
Class Of Stock [Line Items]                    
Shares reserved for future issuance   907,000                
Exercise price as percentage of fair market value of common stock   85.00%                
Percentage of outstanding common stock   1.00%                
Maximum percentage of common stock eligible to purchase through payroll deductions for employees   15.00%                
Maximum number of shares available for participant to purchase during period | $   $ 25,000,000                
Maximum number of shares available for participant to purchase during period   2,000                
Offering period   24 months                
First offering period start date   Jun. 29, 2017                
2017 Employee Stock Purchase Plan | IPO                    
Class Of Stock [Line Items]                    
Share price | $ / shares   $ 7.00                
2017 Employee Stock Purchase Plan | Maximum                    
Class Of Stock [Line Items]                    
Number of shares increased annually to common stock shares reserve for issuance   907,000                
2008 Stock Plan                    
Class Of Stock [Line Items]                    
Shares reserved for future issuance                   7,688,078
2008 Stock Plan | Minimum                    
Class Of Stock [Line Items]                    
Exercise price as percentage of fair market value of common stock                 100.00%  
2008 Stock Plan | ISOs                    
Class Of Stock [Line Items]                    
Service period                 1 year  
Share-based compensation arrangement by share-based payment award, vesting period                 36 months  
Expiration period from date of grant                 10 years  
2008 Stock Plan | ISOs | Completion of One Year of Service                    
Class Of Stock [Line Items]                    
Vesting rate                 25.00%  
2008 Stock Plan | NSOs                    
Class Of Stock [Line Items]                    
Expiration period from date of grant                 10 years  
2017 Equity Incentive Plan                    
Class Of Stock [Line Items]                    
Shares reserved for future issuance   4,537,000                
2017 Equity Incentive Plan | Minimum                    
Class Of Stock [Line Items]                    
Exercise price as percentage of fair market value of common stock   100.00%                
2017 Equity Incentive Plan | ISOs                    
Class Of Stock [Line Items]                    
Service period   1 year                
Share-based compensation arrangement by share-based payment award, vesting period   36 months                
Expiration period from date of grant   10 years                
2017 Equity Incentive Plan | ISOs | Completion of One Year of Service                    
Class Of Stock [Line Items]                    
Vesting rate   25.00%                
2017 Equity Incentive Plan | NSOs                    
Class Of Stock [Line Items]                    
Expiration period from date of grant   10 years