Condensed Consolidated Statements of Shareholders' Equity - USD ($)
$ in Thousands
Total
Cumulative Effect, Period of Adoption, Adjustment
Ordinary Shares
Treasury Shares
Additional Paid-in Capital
Accumulated Other Comprehensive Loss
Accumulated Deficit
Accumulated Deficit
Cumulative Effect, Period of Adoption, Adjustment
Beginning balance (in shares) at Apr. 30, 2020     82,856,978          
Beginning balance at Apr. 30, 2020 $ 413,647 $ 367 $ 856 $ (369) $ 898,788 $ (1,377) $ (484,251) $ 367
Increase (Decrease) in Stockholders' Equity [Roll Forward]                
Issuance of ordinary shares upon exercise of stock options (in shares)     6,192,264          
Issuance of ordinary shares upon exercise of stock options 67,554   $ 73   67,481      
Issuance of ordinary shares upon release of restricted stock unit (in shares)     595,698          
Issuance of ordinary shares upon release of restricted stock units 0   $ 8   (8)      
Stock-based compensation 64,634       64,634      
Adjustment To Additional Paid In Capital, Reclassification Of Share-based Compensation Liability 2,703              
Net loss (86,133)           (86,133)  
Foreign currency translation (7,191)         (7,191)    
Ending balance (in shares) at Jan. 31, 2021     89,644,940          
Ending balance at Jan. 31, 2021 455,581   $ 937 (369) 1,033,598 (8,568) (570,017)  
Beginning balance (in shares) at Oct. 31, 2020     87,204,991          
Beginning balance at Oct. 31, 2020 442,658   $ 908 (369) 986,076 (11,914) (532,043)  
Increase (Decrease) in Stockholders' Equity [Roll Forward]                
Issuance of ordinary shares upon exercise of stock options (in shares)     2,157,149          
Issuance of ordinary shares upon exercise of stock options 22,324   $ 26   22,298      
Issuance of ordinary shares upon release of restricted stock unit (in shares)     282,800          
Issuance of ordinary shares upon release of restricted stock units 0   $ 3   (3)      
Stock-based compensation 25,227       25,227      
Net loss (37,974)           (37,974)  
Foreign currency translation 3,346         3,346    
Ending balance (in shares) at Jan. 31, 2021     89,644,940          
Ending balance at Jan. 31, 2021 455,581   $ 937 (369) 1,033,598 (8,568) (570,017)  
Beginning balance (in shares) at Apr. 30, 2021     90,533,985          
Beginning balance at Apr. 30, 2021 $ 450,831   $ 948 (369) 1,071,675 (8,105) (613,318)  
Increase (Decrease) in Stockholders' Equity [Roll Forward]                
Issuance of ordinary shares upon exercise of stock options (in shares) 2,004,188   2,004,188          
Issuance of ordinary shares upon exercise of stock options $ 27,540   $ 24   27,516      
Issuance of ordinary shares upon release of restricted stock unit (in shares)     882,754          
Issuance of ordinary shares upon release of restricted stock units 0   $ 10   (10)      
Stock-based compensation 97,123       97,123      
Net loss (138,238)           (138,238)  
Foreign currency translation (6,213)         (6,213)    
Ending balance (in shares) at Jan. 31, 2022     93,420,927          
Ending balance at Jan. 31, 2022 432,309   $ 982 (369) 1,197,570 (14,318) (751,556)  
Increase (Decrease) in Stockholders' Equity [Roll Forward]                
Adjustments to Additional Paid in Capital, Replacement awards - Pre-combination 1,266       1,266      
Beginning balance (in shares) at Oct. 31, 2021     92,566,025          
Beginning balance at Oct. 31, 2021 449,800   $ 972 (369) 1,153,408 (9,381) (694,830)  
Increase (Decrease) in Stockholders' Equity [Roll Forward]                
Issuance of ordinary shares upon exercise of stock options (in shares)     473,442          
Issuance of ordinary shares upon exercise of stock options 6,709   $ 6   6,703      
Issuance of ordinary shares upon release of restricted stock unit (in shares)     381,460          
Issuance of ordinary shares upon release of restricted stock units 0   $ 4   (4)      
Stock-based compensation 37,463       37,463      
Net loss (56,726)           (56,726)  
Foreign currency translation (4,937)         (4,937)    
Ending balance (in shares) at Jan. 31, 2022     93,420,927          
Ending balance at Jan. 31, 2022 $ 432,309   $ 982 $ (369) $ 1,197,570 $ (14,318) $ (751,556)