Skip to content

Commit 4151fa0

Browse files
authored
remove a bunch of parse cloud references (#654)
1 parent a1c8ab0 commit 4151fa0

12 files changed

+30
-30
lines changed

_includes/android/handling-errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Handling Errors
22

3-
Many of the methods on `ParseObject`, including `save()`, `delete()`, and `get()` will throw a `ParseException` on an invalid request, such as deleting or editing an object that no longer exists in the cloud, or when there is a network failure preventing communication with the Parse Cloud. You will need to catch and deal with these exceptions.
3+
Many of the methods on `ParseObject`, including `save()`, `delete()`, and `get()` will throw a `ParseException` on an invalid request, such as deleting or editing an object that no longer exists in the database, or when there is a network failure preventing communication with your Parse Server. You will need to catch and deal with these exceptions.
44

55
For more details, look at the [Android API]({{ site.apis.android }}).

_includes/android/objects.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Each `ParseObject` has a class name that you can use to distinguish different so
1616

1717
## Saving Objects
1818

19-
Let's say you want to save the `GameScore` described above to the Parse Cloud. The interface is similar to a `Map`, plus the `saveInBackground` method:
19+
Let's say you want to save the `GameScore` described above to your Parse Server. The interface is similar to a `Map`, plus the `saveInBackground` method:
2020

2121
```java
2222
ParseObject gameScore = new ParseObject("GameScore");
@@ -169,7 +169,7 @@ query.getInBackground("xWMyZ4YEGZ", new GetCallback<ParseObject>() {
169169
public void done(ParseObject gameScore, ParseException e) {
170170
if (e == null) {
171171
// Now let's update it with some new data. In this case, only cheatMode and score
172-
// will get sent to the Parse Cloud. playerName hasn't changed.
172+
// will get sent to your Parse Server. playerName hasn't changed.
173173
gameScore.put("score", 1338);
174174
gameScore.put("cheatMode", true);
175175
gameScore.saveInBackground();
@@ -212,7 +212,7 @@ Note that it is not currently possible to atomically add and remove items from a
212212

213213
## Deleting Objects
214214

215-
To delete an object from the Parse Cloud:
215+
To delete an object from your Parse Server:
216216

217217
```java
218218
myObject.deleteInBackground();
@@ -226,7 +226,7 @@ You can delete a single field from an object with the `remove` method:
226226
// After this, the playerName field will be empty
227227
myObject.remove("playerName");
228228

229-
// Saves the field deletion to the Parse Cloud
229+
// Saves the field deletion to your Parse Server
230230
myObject.saveInBackground();
231231
```
232232

@@ -485,7 +485,7 @@ protected void onSaveInstanceState(Bundle outState) {
485485
super.onSaveInstanceState(outState);
486486
outState.putParcelable("object", object);
487487
}
488-
488+
489489
@Override
490490
protected void onCreate(@Nullable Bundle savedInstanceState) {
491491
if (savedInstanceState != null) {
@@ -507,7 +507,7 @@ This means that the `ParseObject` is internally notified about the operation res
507507
When the Local Datastore is disabled, and the parceled `ParseObject` has ongoing operations that haven't finished yet, the unparceled object will end up in a stale state. The unparceled object, being a different instance than the source object,
508508

509509
- assumes that ongoing operations at the moment of parceling never took place
510-
- will not update its internal state when the operations triggered by the source object
510+
- will not update its internal state when the operations triggered by the source object
511511

512512
The unfortunate consequence is that keys that were dirty before saving will still be marked as dirty for the unparceled object. This means, for instance, that any future call to `saveInBackground()` will send these dirty operations to the server again. This can lead to inconsistencies for operations like `increment`, since it might be performed twice.
513513

@@ -520,12 +520,12 @@ By default, `ParseObject` implementation parcels everything that is needed. If y
520520
@ParseClassName("Armor")
521521
public class Armor extends ParseObject {
522522
private int member;
523-
523+
524524
@Override
525525
protected void onSaveInstanceState(Bundle outState) {
526526
outState.putInt("member", member);
527527
}
528-
528+
529529
@Override
530530
protected void onRestoreInstanceState(Bundle savedInstanceState) {
531531
member = savedInstanceState.getInt("member");

_includes/android/push-notifications.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ You can also get the set of channels that the current device is subscribed to us
8585
List<String> subscribedChannels = ParseInstallation.getCurrentInstallation().getList("channels");
8686
```
8787

88-
Neither the subscribe method nor the unsubscribe method blocks the thread it is called from. The subscription information is cached on the device's disk if the network is inaccessible and transmitted to the Parse Cloud as soon as the network is usable. This means you don't have to worry about threading or callbacks while managing subscriptions.
88+
Neither the subscribe method nor the unsubscribe method blocks the thread it is called from. The subscription information is cached on the device's disk if the network is inaccessible and transmitted to your Parse Server as soon as the network is usable. This means you don't have to worry about threading or callbacks while managing subscriptions.
8989

9090
#### Sending Pushes to Channels
9191

_includes/arduino/cloud-code.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cloud Functions
22

3-
Cloud Functions allow you to run custom app logic in the Parse Cloud. This is especially useful for running complex app logic in the cloud so that you can reduce the memory footprint of your code on the IoT device. In a Cloud Function, you can query/save Parse data, send push notifications, and log analytics events.
3+
Cloud Functions allow you to run custom app logic on your Parse Server. This is especially useful for running complex app logic in the cloud so that you can reduce the memory footprint of your code on the IoT device. In a Cloud Function, you can query/save Parse data, send push notifications, and log analytics events.
44

55
You write your Cloud Code in JavaScript using the Parse JavaScript SDK. We provide a command-line tool to help you deploy your Cloud Code. See our [Cloud Code guide]({{ site.baseUrl }}/cloudcode/guide) for details.
66

_includes/arduino/objects.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Each object has a class name that you can use to distinguish different sorts of
1616

1717
## Saving Objects
1818

19-
Let's say you want to save the `Temperature` described above to the Parse Cloud. You would do the following:
19+
Let's say you want to save the `Temperature` described above to your Parse Server. You would do the following:
2020

2121
```cpp
2222
ParseObjectCreate create;
@@ -41,7 +41,7 @@ After this code runs, you will probably be wondering if anything really happened
4141

4242
There are two things to note here. You didn't have to configure or set up a new Class called `Temperature` before running this code. Your Parse app lazily creates this Class for you when it first encounters it.
4343

44-
There are also a few fields you don't need to specify that are provided as a convenience. `objectId` is a unique identifier for each saved object. `createdAt` and`updatedAt` represent the time that each object was created and last modified in the Parse Cloud. Each of these fields is filled in by Parse, so they don't exist on a Parse Object until a save operation has completed.
44+
There are also a few fields you don't need to specify that are provided as a convenience. `objectId` is a unique identifier for each saved object. `createdAt` and`updatedAt` represent the time that each object was created and last modified in your Parse Server. Each of these fields is filled in by Parse, so they don't exist on a Parse Object until a save operation has completed.
4545

4646
## Retrieving Objects
4747

_includes/common/data.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Objects in either format should contain keys and values that also satisfy the fo
5454
* Key names must contain only numbers, letters, and underscore, and must start with a letter.
5555
* No value may contain a hard newline '`\n`'.
5656

57-
Normally, when objects are saved to Parse, they are automatically assigned a unique identifier through the `objectId` field, as well as a `createdAt` field and `updatedAt` field which represent the time that the object was created and last modified in the Parse Cloud. These fields can be manually set when data is imported from a JSON file. Please keep in mind the following:
57+
Normally, when objects are saved to Parse, they are automatically assigned a unique identifier through the `objectId` field, as well as a `createdAt` field and `updatedAt` field which represent the time that the object was created and last modified in your Parse Server. These fields can be manually set when data is imported from a JSON file. Please keep in mind the following:
5858

5959
* Use a unique 10 character alphanumeric string as the value of your `objectId` fields.
6060
* Use a UTC timestamp in the ISO 8601 format when setting a value for the `createdAt` field or the `updatedAt` field.

_includes/common/sessions.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Sessions represent an instance of a user logged into a device. Sessions are automatically created when users log in or sign up. They are automatically deleted when users log out. There is one distinct `Session` object for each user-installation pair; if a user issues a login request from a device they're already logged into, that user's previous `Session` object for that Installation is automatically deleted. `Session` objects are stored on Parse in the Session class, and you can view them on the Parse Dashboard Data Browser. We provide a set of APIs to manage `Session` objects in your app.
44

5-
`Session` is a subclass of a Parse `Object`, so you can query, update, and delete sessions in the same way that you manipulate normal objects on Parse. Because the Parse Cloud automatically creates sessions when you log in or sign up users, you should not manually create `Session` objects unless you are building a "Parse for IoT" app (e.g. Arduino or Embedded C). Deleting a `Session` will log the user out of the device that is currently using this session's token.
5+
`Session` is a subclass of a Parse `Object`, so you can query, update, and delete sessions in the same way that you manipulate normal objects on Parse. Because Parse Server automatically creates sessions when you log in or sign up users, you should not manually create `Session` objects unless you are building a "Parse for IoT" app (e.g. Arduino or Embedded C). Deleting a `Session` will log the user out of the device that is currently using this session's token.
66

77
Unlike other Parse objects, the `Session` class does not have Cloud Code triggers. So you cannot register a `beforeSave` or `afterSave` handler for the Session class.
88

@@ -17,14 +17,14 @@ The `Session` object has these special fields:
1717
* `authProvider` could have values: `password`, `anonymous`, `facebook`, or `twitter`.
1818
* `restricted` (readonly): Boolean for whether this session is restricted.
1919
* Restricted sessions do not have write permissions on `User`, `Session`, and `Role` classes on Parse. Restricted sessions also cannot read unrestricted sessions.
20-
* All sessions that the Parse Cloud automatically creates during user login/signup will be unrestricted. All sessions that the developer manually creates by saving a new `Session` object from the client (only needed for "Parse for IoT" apps) will be restricted.
20+
* All sessions that Parse Server automatically creates during user login/signup will be unrestricted. All sessions that the developer manually creates by saving a new `Session` object from the client (only needed for "Parse for IoT" apps) will be restricted.
2121
* `expiresAt` (readonly): Approximate UTC date when this `Session` object will be automatically deleted. You can configure session expiration settings (either 1-year inactivity expiration or no expiration) in your app's Parse Dashboard settings page.
2222
* `installationId` (can be set only once): String referring to the `Installation` where the session is logged in from. For Parse SDKs, this field will be automatically set when users log in or sign up.
23-
All special fields except `installationId` can only be set automatically by the Parse Cloud. You can add custom fields onto `Session` objects, but please keep in mind that any logged-in device (with session token) can read other sessions that belong to the same user (unless you disable Class-Level Permissions, see below).
23+
All special fields except `installationId` can only be set automatically by Parse Server. You can add custom fields onto `Session` objects, but please keep in mind that any logged-in device (with session token) can read other sessions that belong to the same user (unless you disable Class-Level Permissions, see below).
2424

2525
## Handling Invalid Session Token Error
2626

27-
With revocable sessions, your current session token could become invalid if its corresponding `Session` object is deleted from the Parse Cloud. This could happen if you implement a Session Manager UI that lets users log out of other devices, or if you manually delete the session via Cloud Code, REST API, or Data Browser. Sessions could also be deleted due to automatic expiration (if configured in app settings). When a device's session token no longer corresponds to a `Session` object on the Parse Cloud, all API requests from that device will fail with “Error 209: invalid session token”.
27+
With revocable sessions, your current session token could become invalid if its corresponding `Session` object is deleted from your Parse Server. This could happen if you implement a Session Manager UI that lets users log out of other devices, or if you manually delete the session via Cloud Code, REST API, or Data Browser. Sessions could also be deleted due to automatic expiration (if configured in app settings). When a device's session token no longer corresponds to a `Session` object on your Parse Server, all API requests from that device will fail with “Error 209: invalid session token”.
2828

2929
To handle this error, we recommend writing a global utility function that is called by all of your Parse request error callbacks. You can then handle the "invalid session token" error in this global function. You should prompt the user to login again so that they can obtain a new session token. This code could look like this:
3030

@@ -292,7 +292,7 @@ try {
292292

293293
`Session` objects can only be accessed by the user specified in the user field. All `Session` objects have an ACL that is read and write by that user only. You cannot change this ACL. This means querying for sessions will only return objects that match the current logged-in user.
294294

295-
When you log in a user via a `User` login method, Parse will automatically create a new unrestricted `Session` object in the Parse Cloud. Same for signups and Facebook/Twitter logins.
295+
When you log in a user via a `User` login method, Parse will automatically create a new unrestricted `Session` object in your Parse Server. Same for signups and Facebook/Twitter logins.
296296

297297
Session objects manually created from client SDKs (by creating an instance of `Session`, and saving it) are always restricted. You cannot manually create an unrestricted sessions using the object creation API.
298298

@@ -310,7 +310,7 @@ Parse.Cloud.beforeSave("MyClass", function(request, response) {
310310
});
311311
});
312312
```
313-
You can configure Class-Level Permissions (CLPs) for the Session class just like other classes on Parse. CLPs restrict reading/writing of sessions via the `Session` API, but do not restrict Parse Cloud's automatic session creation/deletion when users log in, sign up, and log out. We recommend that you disable all CLPs not needed by your app. Here are some common use cases for Session CLPs:
313+
You can configure Class-Level Permissions (CLPs) for the Session class just like other classes on Parse. CLPs restrict reading/writing of sessions via the `Session` API, but do not restrict Parse Server's automatic session creation/deletion when users log in, sign up, and log out. We recommend that you disable all CLPs not needed by your app. Here are some common use cases for Session CLPs:
314314

315315
* **Find**, **Delete** — Useful for building a UI screen that allows users to see their active session on all devices, and log out of sessions on other devices. If your app does not have this feature, you should disable these permissions.
316316
* **Create** — Useful for "Parse for IoT" apps (e.g. Arduino or Embedded C) that provision restricted user sessions for other devices from the phone app. You should disable this permission when building apps for mobile and web. For "Parse for IoT" apps, you should check whether your IoT device actually needs to access user-specific data. If not, then your IoT device does not need a user session, and you should disable this permission.

_includes/dotnet/handling-errors.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ await user.SignUpAsync();
1111

1212
This will throw an `InvalidOperationException` because `SignUpAsync` was called without first setting the required properties (`Username` and `Password`).
1313

14-
The second type of error is one that occurs when interacting with the Parse Cloud over the network. These errors are either related to problems connecting to the cloud or problems performing the requested operation. Let's take a look at another example:
14+
The second type of error is one that occurs when interacting with Parse Server over the network. These errors are either related to problems connecting to the cloud or problems performing the requested operation. Let's take a look at another example:
1515

1616
```cs
1717
await ParseObject.GetQuery("Note").GetAsync("thisObjectIdDoesntExist");
1818
```
1919

20-
In the above code, we try to fetch an object with a non-existent `ObjectId`. The Parse Cloud will return an error -- so here's how to handle it properly:
20+
In the above code, we try to fetch an object with a non-existent `ObjectId`. Parse Server will return an error -- so here's how to handle it properly:
2121

2222
```cs
2323
try

_includes/dotnet/objects.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Each `ParseObject` has a class name that you can use to distinguish different so
1717

1818
## Saving Objects
1919

20-
Let's say you want to save the `GameScore` described above to the Parse Cloud. The interface is similar to an `IDictionary<string, object>`, plus the `SaveAsync` method:
20+
Let's say you want to save the `GameScore` described above to your Parse Server. The interface is similar to an `IDictionary<string, object>`, plus the `SaveAsync` method:
2121

2222
```cs
2323
ParseObject gameScore = new ParseObject("GameScore");
@@ -35,7 +35,7 @@ createdAt:"2011-06-10T18:33:42Z", updatedAt:"2011-06-10T18:33:42Z"
3535

3636
There are two things to note here. You didn't have to configure or set up a new Class called `GameScore` before running this code. Your Parse app lazily creates this Class for you when it first encounters it.
3737

38-
There are also a few fields you don't need to specify that are provided as a convenience. `ObjectId` is a unique identifier for each saved object. `CreatedAt` and `UpdatedAt` represent the time that each object was created and last modified in the Parse Cloud. Each of these fields is filled in by Parse, so they don't exist on a `ParseObject` until a save operation has completed.
38+
There are also a few fields you don't need to specify that are provided as a convenience. `ObjectId` is a unique identifier for each saved object. `CreatedAt` and `UpdatedAt` represent the time that each object was created and last modified in your Parse Server. Each of these fields is filled in by Parse, so they don't exist on a `ParseObject` until a save operation has completed.
3939

4040
## Data Types
4141

@@ -178,7 +178,7 @@ You can delete a single field from an object with the `Remove` method:
178178
// After this, the playerName field will be empty
179179
myObject.Remove("playerName");
180180

181-
// Saves the field deletion to the Parse Cloud
181+
// Saves the field deletion to Parse Server
182182
await myObject.SaveAsync();
183183
```
184184

_includes/embedded_c/cloud-code.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cloud Functions
22

3-
Cloud Functions allow you to run custom app logic in the Parse Cloud. This is especially useful for running complex app logic in the cloud so that you can reduce the memory footprint of your code on the IoT device. In a Cloud Function, you can query/save Parse data, send push notifications, and log analytics events.
3+
Cloud Functions allow you to run custom app logic on your Parse Server. This is especially useful for running complex app logic in the cloud so that you can reduce the memory footprint of your code on the IoT device. In a Cloud Function, you can query/save Parse data, send push notifications, and log analytics events.
44

55
You write your Cloud Code in JavaScript using the Parse JavaScript SDK. See our [Cloud Code guide]({{ site.baseUrl }}/cloudcode/guide/) for details.
66

0 commit comments

Comments
 (0)