Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d2bdb27
test: Remove `Parse.Cloud.job` parameters from tests (#2640)
mtrezza Jun 3, 2025
2818ed9
fix: Unhandled exception when calling `Parse.Cloud.run` with option v…
modime Jun 4, 2025
0beccce
refactor: Bump parse-server from 8.2.0 to 8.2.1 (#2638)
dependabot[bot] Jun 4, 2025
8daa438
refactor: Bump @babel/plugin-transform-runtime from 7.27.3 to 7.27.4 …
dependabot[bot] Jun 4, 2025
f77ffe5
refactor: Bump eslint-plugin-jsdoc from 50.6.17 to 50.7.1 (#2636)
dependabot[bot] Jun 4, 2025
68acd26
refactor: Bump puppeteer from 24.9.0 to 24.10.0 (#2637)
dependabot[bot] Jun 4, 2025
1966273
refactor: Bump @eslint/js from 9.27.0 to 9.28.0 (#2644)
dependabot[bot] Jun 5, 2025
bf1a91a
refactor: Bump @babel/runtime-corejs3 from 7.27.3 to 7.27.6 (#2646)
dependabot[bot] Jun 5, 2025
44e60db
refactor: Bump @babel/core from 7.27.3 to 7.27.4 (#2645)
dependabot[bot] Jun 6, 2025
66285a2
refactor: Bump gulp from 5.0.0 to 5.0.1 (#2634)
dependabot[bot] Jun 6, 2025
aa17bbd
refactor: Bump typescript-eslint from 8.33.0 to 8.33.1 (#2642)
dependabot[bot] Jun 6, 2025
581dc6d
refactor: Bump eslint from 9.27.0 to 9.28.0 (#2641)
dependabot[bot] Jun 6, 2025
6434649
refactor: Bump jasmine from 5.7.1 to 5.8.0 (#2648)
dependabot[bot] Jun 9, 2025
e9dd194
refactor: Bump typescript-eslint from 8.33.1 to 8.34.0 (#2652)
dependabot[bot] Jun 14, 2025
e1546f9
refactor: Bump eslint from 9.28.0 to 9.29.0 (#2654)
dependabot[bot] Jun 16, 2025
ddc66a1
feat: Remove `Parse.serverAuthType`, `Parse.serverAuthToken` infavor …
dplewis Jun 17, 2025
9dcee4f
refactor: Bump @eslint/js from 9.28.0 to 9.29.0 (#2655)
dependabot[bot] Jun 17, 2025
0f265de
refactor: Bump lint-staged from 16.1.0 to 16.1.2 (#2656)
dependabot[bot] Jun 23, 2025
45cf663
refactor: Bump core-js from 3.42.0 to 3.43.0 (#2647)
dependabot[bot] Jun 24, 2025
8998c44
refactor: Bump pbkdf2 from 3.1.2 to 3.1.3 (#2660)
dependabot[bot] Jun 24, 2025
8fee82a
refactor: Bump typescript-eslint from 8.34.0 to 8.35.0 (#2662)
dependabot[bot] Jun 29, 2025
2ad61cf
empty commit to trigger CI
github-actions[bot] Jul 1, 2025
c2b71ec
Merge branch 'release' into build/release-20250701
mtrezza Jul 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions integration/test/IdempotencyTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ describe('Idempotency', () => {
it('handle duplicate job request', async () => {
DuplicateRequestId('1234');
const params = { startedBy: 'Monty Python' };
const jobStatusId = await Parse.Cloud.startJob('CloudJob1', params);
await expectAsync(Parse.Cloud.startJob('CloudJob1', params)).toBeRejectedWithError(
const jobStatusId = await Parse.Cloud.startJob('CloudJobParamsInMessage', params);
await expectAsync(Parse.Cloud.startJob('CloudJobParamsInMessage', params)).toBeRejectedWithError(
'Duplicate request'
);

Expand All @@ -49,7 +49,7 @@ describe('Idempotency', () => {
}
const jobStatus = await Parse.Cloud.getJobStatus(jobStatusId);
expect(jobStatus.get('status')).toBe('succeeded');
expect(jobStatus.get('params').startedBy).toBe('Monty Python');
expect(JSON.parse(jobStatus.get('message'))).toEqual(params);
});

it('handle duplicate POST / PUT request', async () => {
Expand Down
8 changes: 4 additions & 4 deletions integration/test/ParseCloudTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ describe('Parse Cloud', () => {

it('run job', async () => {
const params = { startedBy: 'Monty Python' };
const jobStatusId = await Parse.Cloud.startJob('CloudJob1', params);
const jobStatusId = await Parse.Cloud.startJob('CloudJobParamsInMessage', params);
expect(jobStatusId).toBeDefined();
await waitForJobStatus(jobStatusId, 'succeeded');

const jobStatus = await Parse.Cloud.getJobStatus(jobStatusId);
assert.equal(jobStatus.get('status'), 'succeeded');
assert.equal(jobStatus.get('params').startedBy, 'Monty Python');
expect(jobStatus.get('status')).toBe('succeeded');
expect(JSON.parse(jobStatus.get('message'))).toEqual(params);
});

it('run long job', async () => {
Expand Down Expand Up @@ -137,7 +137,7 @@ describe('Parse Cloud', () => {
it('get jobs data', done => {
Parse.Cloud.getJobsData().then(result => {
assert.equal(result.in_use.length, 0);
assert.equal(result.jobs.length, 3);
assert.equal(result.jobs.length, 4);
done();
});
});
Expand Down
4 changes: 4 additions & 0 deletions integration/test/cloud/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ Parse.Cloud.job('CloudJob2', function () {
});
});

Parse.Cloud.job('CloudJobParamsInMessage', request => {
request.message(JSON.stringify(request.params));
});

Parse.Cloud.job('CloudJobFailing', function () {
throw 'cloud job failed';
});
2 changes: 1 addition & 1 deletion integration/test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const defaultConfiguration = {
},
},
idempotencyOptions: {
paths: ['functions/CloudFunctionIdempotency', 'jobs/CloudJob1', 'classes/IdempotentTest'],
paths: ['functions/CloudFunctionIdempotency', 'jobs/CloudJob1', 'jobs/CloudJobParamsInMessage', 'classes/IdempotentTest'],
ttl: 120,
},
fileUpload: {
Expand Down
Loading