Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias Assign TupleStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Num Assign NameStore BinOpMult Num Num ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call NameLoad NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Return NameLoad Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad Str attr ListLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Return Call NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad Str attr ListLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Return Call NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr UnaryOpUSub AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad attr decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad Str attr ListLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad decorator_list
N/A N/A Models for Oppia feedback threads and messages. core.platform models N/A feconf N/A utils google.appengine.ext ndb N/A N/A base_models N/A N/A N/A models Registry import_models N/A N/A N/A models NAMES base_model N/A STATUS_CHOICES_OPEN open N/A STATUS_CHOICES_FIXED fixed N/A STATUS_CHOICES_IGNORED ignored N/A STATUS_CHOICES_COMPLIMENT compliment N/A STATUS_CHOICES_NOT_ACTIONABLE not_actionable N/A STATUS_CHOICES N/A STATUS_CHOICES_OPEN STATUS_CHOICES_FIXED STATUS_CHOICES_IGNORED STATUS_CHOICES_COMPLIMENT STATUS_CHOICES_NOT_ACTIONABLE N/A _MAX_RETRIES 10 N/A _RAND_RANGE N/A 127 127 FeedbackThreadModel N/A N/A base_models BaseModel N/A N/A Threads for each exploration.

    The id/key of instances of this class has the form
        [EXPLORATION_ID].[THREAD_ID]
     N/A exploration_id N/A N/A ndb StringProperty required True indexed True N/A state_name N/A N/A ndb StringProperty indexed True N/A original_author_id N/A N/A ndb StringProperty indexed True N/A status N/A N/A ndb StringProperty default STATUS_CHOICES_OPEN choices STATUS_CHOICES required True indexed True N/A subject N/A N/A ndb StringProperty indexed False N/A summary N/A N/A ndb TextProperty indexed False N/A has_suggestion N/A N/A ndb BooleanProperty indexed True default False generate_new_thread_id N/A N/A cls exploration_id N/A N/A N/A Generates a new thread id, unique within the exploration.

        Exploration ID + the generated thread ID is globally unique.
         N/A _ N/A range _MAX_RETRIES N/A N/A thread_id N/A N/A N/A utils base64_from_int N/A N/A utils get_current_time_in_millisecs N/A N/A utils base64_from_int N/A N/A utils get_random_int _RAND_RANGE N/A N/A N/A N/A cls get_by_exp_and_thread_id exploration_id thread_id N/A N/A thread_id N/A N/A Exception New thread id generator is producing too many collisions. N/A classmethod generate_full_thread_id N/A N/A cls exploration_id thread_id N/A N/A N/A N/A N/A . join N/A exploration_id thread_id N/A classmethod create N/A N/A cls exploration_id thread_id N/A N/A N/A Creates a new FeedbackThreadModel entry.

        Throws an exception if a thread with the given exploration ID and
        thread ID combination exists already.
         N/A instance_id N/A N/A cls generate_full_thread_id exploration_id thread_id N/A N/A N/A cls get_by_id instance_id N/A N/A N/A Exception Feedback thread ID conflict on create. N/A N/A cls id instance_id N/A classmethod get_by_exp_and_thread_id N/A N/A cls exploration_id thread_id N/A N/A N/A Gets the FeedbackThreadModel entry for the given ID.

        Returns None if the thread is not found or is already deleted.
         N/A N/A N/A cls get_by_id N/A N/A cls generate_full_thread_id exploration_id thread_id N/A classmethod get_threads N/A N/A cls exploration_id N/A N/A N/A Returns an array of threads associated to the exploration.

        Does not include the deleted entries.
         N/A N/A N/A N/A N/A N/A N/A N/A N/A cls get_all filter N/A N/A cls exploration_id exploration_id order N/A cls last_updated fetch N/A feconf DEFAULT_QUERY_LIMIT N/A classmethod N/A FeedbackMessageModel N/A N/A base_models BaseModel N/A N/A Feedback messages. One or more of these messages make a thread.

    The id/key of instances of this class has the form
        [EXPLORATION_ID].[THREAD_ID].[MESSAGE_ID]
     N/A thread_id N/A N/A ndb StringProperty required True indexed True N/A message_id N/A N/A ndb IntegerProperty required True indexed True N/A author_id N/A N/A ndb StringProperty indexed True N/A updated_status N/A N/A ndb StringProperty choices STATUS_CHOICES indexed True N/A updated_subject N/A N/A ndb StringProperty indexed False N/A text N/A N/A ndb StringProperty indexed False _generate_id N/A N/A cls exploration_id thread_id message_id N/A N/A N/A N/A N/A . join N/A exploration_id thread_id N/A str message_id N/A classmethod exploration_id N/A N/A self N/A N/A N/A N/A N/A N/A N/A self id split . N/A 0 N/A property get_thread_subject N/A N/A self N/A N/A N/A N/A N/A N/A FeedbackThreadModel get_by_id N/A self thread_id subject N/A create N/A N/A cls exploration_id thread_id message_id N/A N/A N/A Creates a new FeedbackMessageModel entry.

        Throws an exception if a message with the given thread ID and message
        ID combination exists already.
         N/A instance_id N/A N/A cls _generate_id exploration_id thread_id message_id N/A N/A N/A cls get_by_id instance_id N/A N/A N/A Exception Feedback message ID conflict on create. N/A N/A cls id instance_id N/A classmethod get N/A N/A cls exploration_id thread_id message_id strict N/A True N/A N/A Gets the FeedbackMessageModel entry for the given ID.

        If the message id is valid and it is not marked as deleted, returns the
        message instance. Otherwise:
        - if strict is True, raises EntityNotFoundError
        - if strict is False, returns None.
         N/A instance_id N/A N/A cls _generate_id exploration_id thread_id message_id N/A N/A N/A N/A super FeedbackMessageModel cls get instance_id strict strict N/A classmethod get_messages N/A N/A cls exploration_id thread_id N/A N/A N/A Returns an array of messages in the thread.

        Does not include the deleted entries.
         N/A full_thread_id N/A N/A FeedbackThreadModel generate_full_thread_id exploration_id thread_id N/A N/A N/A N/A N/A N/A N/A cls get_all filter N/A N/A cls thread_id full_thread_id fetch N/A feconf DEFAULT_QUERY_LIMIT N/A classmethod get_most_recent_message N/A N/A cls exploration_id thread_id N/A N/A N/A full_thread_id N/A N/A FeedbackThreadModel generate_full_thread_id exploration_id thread_id N/A N/A N/A N/A N/A N/A N/A N/A N/A cls get_all filter N/A N/A cls thread_id full_thread_id order N/A N/A cls last_updated get N/A classmethod get_message_count N/A N/A cls exploration_id thread_id N/A N/A N/A Returns the number of messages in the thread.

        Includes the deleted entries.
         N/A full_thread_id N/A N/A FeedbackThreadModel generate_full_thread_id exploration_id thread_id N/A N/A N/A N/A N/A N/A N/A cls get_all include_deleted_entities True filter N/A N/A cls thread_id full_thread_id count N/A classmethod get_all_messages N/A N/A cls page_size urlsafe_start_cursor N/A N/A N/A N/A N/A cls _fetch_page_sorted_by_last_updated N/A N/A cls query page_size urlsafe_start_cursor N/A classmethod N/A FeedbackAnalyticsModel N/A N/A base_models BaseMapReduceBatchResultsModel N/A N/A Model for storing feedback thread analytics for an exploration.

    The key of each instance is the exploration id.
     N/A num_open_threads N/A N/A ndb IntegerProperty default None indexed True N/A num_total_threads N/A N/A ndb IntegerProperty default None indexed True create N/A N/A cls model_id num_open_threads num_total_threads N/A N/A N/A Creates a new FeedbackAnalyticsModel entry. N/A N/A N/A N/A cls id model_id num_open_threads num_open_threads num_total_threads num_total_threads put N/A classmethod N/A SuggestionModel N/A N/A base_models BaseModel N/A N/A Suggestions made by learners.

    The id of each instance is the id of the corresponding thread.
     N/A author_id N/A N/A ndb StringProperty required True indexed True N/A exploration_id N/A N/A ndb StringProperty required True indexed True N/A exploration_version N/A N/A ndb IntegerProperty required True indexed True N/A state_name N/A N/A ndb StringProperty required True indexed True N/A description N/A N/A ndb TextProperty required True indexed False N/A state_content N/A N/A ndb JsonProperty required True indexed False create N/A N/A cls exploration_id thread_id author_id exploration_version state_name description state_content N/A N/A N/A Creates a new SuggestionModel entry.

        Throws an exception if a suggestion with the given thread id already
        exists.
         N/A instance_id N/A N/A cls _get_instance_id exploration_id thread_id N/A N/A N/A cls get_by_id instance_id N/A N/A N/A Exception N/A There is already a feedback thread with the given thread id: %s instance_id N/A N/A N/A N/A cls id instance_id author_id author_id exploration_id exploration_id exploration_version exploration_version state_name state_name description description state_content state_content put N/A classmethod _get_instance_id N/A N/A cls exploration_id thread_id N/A N/A N/A N/A N/A . join N/A exploration_id thread_id N/A classmethod get_by_exploration_and_thread_id N/A N/A cls exploration_id thread_id N/A N/A N/A Gets a suggestion by the corresponding exploration and thread id's.

        Returns None if it doesn't match anything. N/A N/A N/A cls get_by_id N/A N/A cls _get_instance_id exploration_id thread_id N/A classmethod N/A