-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Create witch custom id #225
Conversation
As this is my first time I encountered XCTests and also started updating other branch and per your comment added new branch later, I am really not sure If I got the things right. I apologise in advance! |
Can you resolve the conflicts? |
Also, it looks like you started from the branch I created as opposed to branching from the main which is why you need to resolve conflicts #220 (comment) |
Sure, I will have a look on the conflicts. I am sorry, I was never using git control before. I started from non-main branch, you are right (not knowing there will be such conflicts) and after you mentioned it I had actually all the code modified, so I then tried to merge it in the forked main and then create PR... Obviously that is not the way to do that. Also, I did not know how to run the XCTests, as I never did any before and I do not have local Parse Server running (do I need that?) so if you could give me a hint that would be great! |
You don't need a parse server to run the tests. You can run tests locally using Xcode or they will run automatically in the CI when you fix the conflicts. |
Be sure to look through the failed tests and resolve them. You can press You will probably also want to run through all of the Swift playgrounds to test your changes on a real server since you are attempting to change essential behavior. |
correcting **Improvements** block wrongly assigned to already released version 1.9.8
Correcting wrong objectId reference
Correcting wrong objectId reference
Correcting Test cases
Correcting failed test cases
Correcting failing test cases
You need to install SwiftLint and ensure you fix all of the errors and warnings before committing or else your builds won't pass. If SwiftLint is installed, you will see the build errors and warnings on your local computer https://github.com/parse-community/Parse-Swift/blob/main/CONTRIBUTING.md |
I believe this is at the end way over my competence. I already see I am breaking it more than contributing, especially the tests, and in the Swift playgrounds I will have to spin up a local version of the server as I understood your comment. This is all new to me and even I somehow make the tests to pass, the test logic will be rather wrong. The goal was to remove the need of |
the tests are there to ensure core logic isn’t broken when changes are made. The changes you were making will definitely break core logic, and some of the tests that fail will need to be changed. It also allows us to see what breaks and if the change should be added. I don’t see a commit where you fixed the linking so we can at least see the test failures to evaluate your changes. Can you fix the linting and commit your code?
this is as simple as downloading docker, forking a repo and running a one liner (see my comment below from the readme). If back4app allows you to spin up a free instance you can use that or any other service and tear it down when you are finished. If you use something like back4app you will need to edit Parse-Swift/ParseSwift.playground/Sources/Common.swift Lines 13 to 16 in f767242
From the README:
I think it’s useful to think about and develop tests for added features and see how/why a change breaks current tests. It will also allow you to learn more about how the SDK is designed and then help you discover bugs in the future |
Added createWithCustomObjectId parameter in .save() functions to remove the need of setting isIgnoreCustomObjectIdConfig = true and allowCustomObjectId = true for a mixed custom objectId environment