Summary of Significant Accounting Policies and Recent Accounting Pronouncements | Summary of Significant Accounting Policies and Recent Accounting Pronouncements The Company’s significant accounting policies are discussed in “Index to Consolidated Financial Statements—Note 1. Summary of Business and Significant Accounting Policies” in the Prospectus. There have been no significant changes to these policies during the nine months ended October 31, 2018 , except as noted below. Short-term Investments The Company typically invests in high quality, investment grade securities from diverse issuers. The Company classifies its short-term investments as available-for-sale. In general, these investments are free of trading restrictions. The Company carries these investments at fair value, based on quoted market prices or other readily available market information. Unrealized gains and losses, net of taxes, are included in accumulated other comprehensive income, which is reflected as a separate component of stockholders’ equity in the Company’s consolidated balance sheets. Gains and losses are recognized when realized in the Company's consolidated statements of comprehensive loss. When the Company has determined that an other-than-temporary decline in fair value has occurred, the amount of the decline that is related to a credit loss is recognized in income. Gains and losses are determined using the specific identification method. The Company reviews its debt securities classified as short-term investments on a regular basis to evaluate whether or not any security has experienced an other-than-temporary decline in fair value. The Company considers factors such as the length of time and extent to which the market value has been less than the cost, the financial condition and near-term prospects of the issuer and our intent to sell, or whether it is more likely than not it will be required to sell the investment before recovery of the investment’s amortized cost basis. If the Company believes that an other-than-temporary decline exists in one of these securities, it will write down these investments to fair value. The portion of the write-down related to credit loss would be recorded to interest and other income (expense), net in our consolidated statements of comprehensive loss. Any portion not related to credit loss would be recorded to accumulated other comprehensive income, which is reflected as a separate component of stockholders' equity in our consolidated balance sheets. The Company may sell its short-term investments at any time, without significant penalty, for use in current operations or for other purposes, even if they have not yet reached maturity. As a result, the Company has classified its investments, including any securities with maturities beyond 12 months, as current assets in the accompanying unaudited condensed consolidated balance sheet as of October 31, 2018 . Securities with original or remaining maturities of three months or less on the purchase date are considered to be cash equivalents and are reflected in cash and cash equivalents in the accompanying unaudited condensed consolidated balance sheet as of October 31, 2018 . Stock-Based Compensation All stock-based compensation to employees, including the purchase rights issued under the Company’s 2018 Employee Stock Purchase Plan (ESPP), is based on the fair value of the awards on the date of grant. This fair value is recognized as an expense following the straight-line attribution method over the requisite service period of the entire award for stock options, restricted stock units (RSUs) and restricted stock; and over the offering period for the purchase rights issued under the ESPP. The Company uses the Black-Scholes option pricing model to measure the fair value of its stock options and the purchase rights issued under the ESPP. The fair value of the RSUs and restricted stock is determined using the fair value of the Company’s Class A common stock on the date of grant. Prior to the IPO, the fair value of the Company’s common stock was determined by the estimated fair value of the Company’s common stock at the time of grant. After the IPO, the Company uses the closing market price of its Class A common stock on the date of grant for the fair value. Stock-based compensation expense is recorded net of estimated forfeitures in the Company’s consolidated statements of comprehensive loss. Recent Accounting Pronouncements—Not Yet Adopted The Jumpstart Our Business Startups Act (JOBS Act) allows the Company, as an “emerging growth company,” to delay adoption of new or revised accounting pronouncements applicable to public companies until such pronouncements are made applicable to private companies. The Company has elected to use this extended transition period under the JOBS Act. The adoption dates discussed below reflect this election. In May 2014, the Financial Accounting Standards Board (FASB) issued ASU No. 2014-09, Revenue from Contracts with Customers (Topic 606) and has modified the standard thereafter. These standards replace existing revenue recognition rules with a comprehensive revenue measurement and recognition standard and expanded disclosure requirements. ASU 2014-09, as amended, became effective for public companies for the fiscal year beginning after December 15, 2017 and interim periods within that year. Private companies have an additional year to adopt the standard. The two permitted transition methods under the new standard are the full retrospective method, under which ASU 2014-09 would be applied to each prior reporting period presented and the cumulative effect of applying the standard would be recognized at the earliest period shown, or the modified retrospective method, under which the cumulative effect of applying ASU 2014-09 would be recognized at the date of initial application. The Company plans to adopt the new revenue standard when it becomes effective for the Company for the fiscal year ending January 31, 2020 (i.e., effective February 1, 2019). The Company is currently in the process of determining what method of adoption it plans to use. The Company is currently assessing the effect the guidance will have on its condensed consolidated financial statements. In January 2016, the FASB issued ASU No. 2016-01 (Subtopic 825-10), Financial Instruments—Overall: Recognition and Measurement of Financial Assets and Financial Liabilities, which primarily affects the accounting for equity investments, financial liabilities under the fair value option, and the presentation and disclosure requirements for financial instruments. In addition, the FASB clarified guidance related to the valuation allowance assessment when recognizing deferred tax assets resulting from unrealized losses on available-for-sale debt securities. The accounting for other financial instruments, such as loans, investments in debt securities, and financial liabilities is largely unchanged. ASU 2016-01 is effective for fiscal years beginning after December 15, 2018, and interim periods in fiscal years beginning after December 15, 2019. Early adoption is permitted. The Company has not yet adopted ASU 2016-01 and is currently evaluating the impact of adoption on its consolidated financial statements. In February 2016, the FASB issued ASU No. 2016-02 (Topic 842)—Leases, which supersedes the guidance in topic ASC 840, Leases. The new standard requires lessees to apply a dual approach, classifying leases as either finance or operating leases based on the principle of whether or not the lease is effectively a financed purchase by the lessee. This classification will determine whether lease expense is recognized based on an effective interest method or on a straight-line basis over the term of the lease. A lessee is also required to record a right-of-use asset and a lease liability for all leases with a term of greater than 12 months regardless of their classification. Leases with a term of 12 months or less will be accounted for similar to existing guidance for operating leases today. In July 2018, the FASB issued ASU 2018-10, Codification Improvements to Topic 842, Leases and ASU 2018-11, Leases (Topic 842): Targeted Improvements. ASU 2018-10 clarifies certain areas within ASU 2016-02. ASU 2018-11 allows entities an additional transition method to the existing requirements whereby an entity could adopt the provisions of ASU 2016-02 by recognizing a cumulative-effect adjustment to the op ening balance of retained earnings in the period of adoption without adjustment to the financial statements for periods prior to adoption. ASU 2018-11 also allows a practical expedient that permits lessors to not separate non-lease component s from the associated lease component if certain conditions are present. ASU 2016-02, ASU2018-10 and ASU 2018-11 (collectively, Topic 842) will be effective for fiscal years beginning after December 15, 2019 and interim periods within fiscal years beginning after December 15, 2020. Early adoption is permitted. The Company has not yet adopted Topic 842 and is currently evaluating the impact of the adoption of this standard on its consolidated financial statements. In February 2018, the FASB issued ASU No. 2018-02, Reclassification of Certain Tax Effects from Accumulated Other Comprehensive Income. Under existing U.S. GAAP, the effects of changes in tax rates and laws on deferred tax balances are recorded as a component of income tax expense in the period in which the law was enacted. When deferred tax balances related to items originally recorded in accumulated other comprehensive income are adjusted, certain tax effects become stranded in accumulated other comprehensive income. The amendments in ASU 2018-02 allow a reclassification from accumulated other comprehensive income to retained earnings (accumulated deficit) for stranded income tax effects resulting from the Tax Cuts and Jobs Act (the Tax Act). The amendments in this ASU also require certain disclosures about stranded income tax effects. The guidance is effective for fiscal years beginning after December 15, 2018, and interim periods within those fiscal years. Early adoption in any period is permitted. The Company’s provisional adjustments recorded in the fiscal year ended January 31, 2018 to account for the impact of the Tax Act did not result in stranded tax effects. The Company has not yet adopted ASU 2018-02 and does not expect the adoption to have a significant impact on its consolidated financial statements. In June 2018, the FASB issued ASU No. 2018-07, Compensation—Stock Compensation (Topic 718) Improvements to Nonemployee Share-Based Payment Accounting. The guidance expands the scope of the topic to include share-based payments granted to non-employees in exchange for goods or services. Upon adoption, the fair value of awards granted to non-employees will be determined as of the grant date, which will be recognized over the service period. Previous guidance required the awards to be remeasured at fair value periodically when determining the related expense. ASU 2018-07 is effective for public business entities for fiscal years beginning after December 15, 2018, including interim periods within that fiscal year. For all other entities, the amendments are effective for fiscal years beginning after December 15, 2019, and interim periods within fiscal years beginning after December 15, 2020. Early adoption is permitted, but no earlier than an entity’s adoption date of Topic 606. The Company has not yet adopted ASU 2018-07 and does not expect the adoption to have a significant impact on its consolidated financial statements. In August 2018, the FASB issued ASU 2018-13, Disclosure Framework - Changes to the Disclosure Requirements for Fair Value Measurement, which amends ASC 820, Fair Value Measurement. The standard no longer requires disclosure of the amount and reasons for transfers between Level 1 and Level 2 of the fair value hierarchy, but public companies will be required to disclose the range and weighted-average used to develop significant unobservable inputs for Level 3 fair value measurements. ASU 2018-13 is effective for interim and annual periods beginning after December 15, 2019 and early adoption is permitted. The Company has not yet adopted ASU 2018-13 and does not expect the adoption to have a significant impact on its consolidated financial statements. In August 2018, the FASB issued ASU 2018-15, Intangibles-Goodwill and Other-Internal-Use Software (Subtopic 350-40): Customer’s Accounting for Implementation Costs Incurred in a Cloud Computing Arrangement That is a Service Contract. This standard aligns the requirements for capitalizing implementation costs incurred in a hosting arrangement that is a service contract with the requirements for capitalizing implementation costs incurred to develop or obtain internal-use software. The standard is effective for annual periods beginning after December 15, 2020, and interim periods within annual periods beginning after December 15, 2021, with early adoption permitted. The Company has not yet adopted ASU 2018-15 and does not expect the adoption to have a significant impact on its consolidated financial statements. In August 2018, the SEC adopted the final rule under SEC Release No. 33-10532, Disclosure Update and Simplification, amending certain disclosure requirements that have become redundant, duplicative, overlapping, outdated or superseded. In addition, the amendments expanded the disclosure requirements on the analysis of stockholders' equity for interim financial statements. Under the amendments, an analysis of changes in each caption of stockholders' equity presented in the balance sheet must be provided in a note or separate statement. The analysis should present a reconciliation of the beginning balance to the ending balance of each period for which a statement of comprehensive income is required to be filed. The final rule is effective November 5, 2018. We expect to present this analysis beginning with our Quarterly Report on Form 10-Q for the three months ending April 30, 2019. Recent Accounting Pronouncements—Adopted The Company adopted ASU No. 2016-09 (Topic 718), Improvements to Employee Share-Based Payments Accounting, effective February 1, 2018. The Company elected to continue to estimate its forfeiture rate. The adoption of this standard did not have an effect on the statement of cash flows. In November 2016, the FASB issued ASU No. 2016-18 (Topic 230), Statement of Cash Flows, Restricted Cash, which amends the guidance in ASC 230 Statement of Cash Flows and requires that entities show the changes in total of cash, cash equivalents, restricted cash, and restricted cash equivalents in their statement of cash flows. As a result, entities will no longer present transfers between cash and cash equivalents and restricted cash and restricted cash equivalents in the statement of cash flows. On February 1, 2018, the Company adopted ASU 2016-18 and began presenting its cash and cash equivalents and restricted cash together in its consolidated statements of cash flows. In January 2017, the FASB issued ASU No. 2017-01, Business Combinations (Topic 805) Clarifying the Definition of a Business, which amends the guidance of FASB Accounting Standards Codification Topic 805, “Business Combinations,” adding guidance to assist entities with evaluating whether transactions should be accounted for as acquisitions or disposals of assets or businesses. The definition of a business affects many areas of accounting including acquisitions, disposals, goodwill, and consolidation. On February 1, 2018, the Company adopted ASU 2017-01 and the adoption did not have an impact on its consolidated financial statements as no business combinations have occurred since adoption. In January 2017, the FASB issued ASU No. 2017-04, Simplifying the Test for Goodwill Impairment, which removes the second step of the goodwill impairment test that requires a hypothetical purchase price allocation. A goodwill impairment will now be the amount by which a reporting unit’s carrying value exceeds its fair value, not to exceed the carrying amount of goodwill. On February 1, 2018, the Company adopted ASU 2017-04 and the adoption did not have a significant impact on its consolidated financial statements. In May 2017, the FASB issued ASU No. 2017-09, Compensation-Stock Compensation (Topic 718) Scope of Modification Accounting, which clarifies which changes to the terms or conditions of a share-based payment award are subject to the guidance on modification accounting. Entities would apply the modification accounting guidance unless the value, vesting requirements, and classification of a share-based payment award are the same immediately before and after a change to the terms or conditions of the award. On February 1, 2018, the Company adopted ASU 2017-09 and the adoption did not have a significant impact on its consolidated financial statements. |