API Docs for: 0.25.0
Show:

FileCacheBypassMixin Class

Extends Ember.Mixin
Module: mixins
Parent Module: ember-osf

This is a hack to resolve a server-side race condition. After creating/modifying/deleting a file through Waterbutler, it can take a fraction of a second for the API's cache to properly update, and trying to reload the file model in that time can return stale data.

This adapter mixin appends a nonce to requests that are likely to run into that race condition, forcing a cache miss.

Item Index

Methods

apply

(
  • obj
)
private

Parameters:

Returns:

applied object

detect

(
  • obj
)
Boolean private

Parameters:

Returns:

isContributor

(
  • userId
)
Boolean

Provided by the ember-osf module.

Defined in addon/mixins/contributor-mixin.js:4

Determine whether the specified user ID is a contributor on this node

Parameters:

Returns:

Boolean:

Whether the specified user is a contributor on this node

reopen

(
  • arguments
)
private

Parameters: