{"size": 1431, "ext": "scrbl", "max_stars_repo_path": "drracket/help/bug-report.scrbl", "max_stars_repo_name": "rrthomas/drracket", "max_stars_repo_stars_event_min_datetime": "2015-01-12T19:40:39.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-26T19:27:24.000Z", "max_issues_repo_path": "drracket/help/bug-report.scrbl", "max_issues_repo_name": "rrthomas/drracket", "max_issues_repo_issues_event_min_datetime": "2015-01-26T14:06:00.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T20:11:59.000Z", "max_forks_repo_path": "drracket/help/bug-report.scrbl", "max_forks_repo_name": "rrthomas/drracket", "max_forks_repo_forks_event_min_datetime": "2015-02-17T19:17:11.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-14T10:07:02.000Z"}
{"max_stars_count": 453, "max_issues_count": 516, "max_forks_count": 111, "avg_line_length": 34.9024390244, "max_line_length": 89, "alphanum_fraction": 0.6184486373}
#lang scribble/manual
@(require (for-label racket
                     help/search
                     help/bug-report
                     help/help-utils))

@title{Bug Reporting}
@defmodule[help/bug-report]

@defproc[(help-desk:report-bug [this-bug-id #f (or/c #f exact-positive-integer?)] 
                               [#:frame-mixin 
                                frame-mixin
                                (make-mixin-contract frame%)
                                values])
         void?]{
  Opens a bug report window to edit the bug report identified by @racket[this-bug-id].
  If @racket[this-bug-id] is @racket[#f], then creates a new bug ID and uses that one.
  
  The @racket[frame-mixin] argument is passed the frame class before creating the window.
}

@defproc[(saved-bug-report-titles/ids) (listof brinfo?)]{
  Returns a list of the saved bug reports.
}

@defproc[(discard-all-saved-bug-reports) void?]{
  Deletes all of the saved bug reports, except those currently
  open in frames.
}

@defproc[(unsave-bug-report [bug-id exact-positive-integer?]) void?]{
  Deletes the saved bug report identified by @racket[bug-id].
}

@defstruct[brinfo ([title label-string?]
                   [id number?]) #:transparent]{
  A record representing a saved bug report. The @racket[id] field is suitable
  for use with @racket[help-desk:report-bug], and the @racket[label] field
  is suitable for use in a GUI control.
}
