Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Dot notation on JSON arrays doesn't work on PushStatus offset fields #2194

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented Jun 28, 2024

…fset fields

Pull Request

Issue

With the introduction of dot notation on array fields. #2120 doesn't include a check for PushStatus.sentPerUTCOffset and PushStatus.failedPerUTCOffset. These fields are a weird mix of dot notation, JSON arrays with numeric offset and dynamic indexes (not a zero indexed json array like the check).

Screenshot 2024-06-27 at 8 43 53 PM

This should allow merging the JS SDK to the server, parse-community/parse-server#9128

Screenshot 2024-06-27 at 2 02 28 PM

Approach

Check for PushStatus dot notation fields

Tasks

  • Add tests
  • Add changes to documentation (guides, repository pages, code comments)

Copy link

parse-github-assistant bot commented Jun 28, 2024

Thanks for opening this pull request!

  • ❌ Please link an issue that describes the reason for this pull request, otherwise your pull request will be closed. Make sure to write it as Closes: #123 in the PR description, so I can recognize it.

@dplewis dplewis requested a review from a team June 28, 2024 01:48
Copy link

codecov bot commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b50790a) to head (d2e8ba7).
Report is 88 commits behind head on alpha.

Additional details and impacted files
@@            Coverage Diff             @@
##             alpha     #2194    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           61        64     +3     
  Lines         6186      6366   +180     
  Branches      1499      1507     +8     
==========================================
+ Hits          6186      6366   +180     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mtrezza mtrezza merged commit e0eb6f0 into parse-community:alpha Jun 28, 2024
11 checks passed
parseplatformorg pushed a commit that referenced this pull request Jun 28, 2024
# [5.2.0-alpha.4](5.2.0-alpha.3...5.2.0-alpha.4) (2024-06-28)

### Bug Fixes

* Dot notation on JSON arrays doesn't work on `PushStatus` offset fields ([#2194](#2194)) ([e0eb6f0](e0eb6f0))
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.2.0-alpha.4

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Jun 28, 2024
parseplatformorg pushed a commit that referenced this pull request Jun 29, 2024
# [5.2.0-beta.2](5.2.0-beta.1...5.2.0-beta.2) (2024-06-29)

### Bug Fixes

* Dot notation on JSON arrays doesn't work on `PushStatus` offset fields ([#2194](#2194)) ([e0eb6f0](e0eb6f0))
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.2.0-beta.2

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Jun 29, 2024
parseplatformorg pushed a commit that referenced this pull request Jun 29, 2024
# [5.2.0](5.1.0...5.2.0) (2024-06-29)

### Bug Fixes

* `LiveQueryClient.resubscribe` with Parse Server 7 causes many open connections ([#2184](#2184)) ([71b4d17](71b4d17))
* `Parse.Installation` not working when installation is deleted on server ([#2126](#2126)) ([22360b4](22360b4))
* Dot notation on JSON arrays doesn't work on `PushStatus` offset fields ([#2194](#2194)) ([e0eb6f0](e0eb6f0))
* Duplicate pending operations on nested fields ([#2162](#2162)) ([df6df7c](df6df7c))

### Features

* Support dot notation on array fields ([#2120](#2120)) ([25ec684](25ec684))
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants