Deferred revenue and remaining performance obligations - Contract with customer, liability (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Dec. 31, 2019
Dec. 31, 2019
Contract with Customer, Liability [Roll Forward]    
Beginning balance, June 30, 2019   $ 135,135
Revenue recognized that was included in beginning balance   (32,434)
Amount billed, net of revenue recognized that was not included in beginning balance   41,470
Ending balance, December 31, 2019 $ 144,171 144,171
Cumulative adjustment as a result of changes in the estimate of the transaction price 138 318
Revenue recognized from performance obligations satisfied or partially satisfied in previous periods $ 239 $ 354