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

Remove ability to synchronize #7991

Merged
merged 11 commits into from
Aug 28, 2024
Merged

Remove ability to synchronize #7991

merged 11 commits into from
Aug 28, 2024

Conversation

jedelbo
Copy link
Contributor

@jedelbo jedelbo commented Aug 21, 2024

What, How & Why?

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (or not relevant)
  • C-API, if public C++ API changed
  • bindgen/spec.yml, if public C++ API changed

@jedelbo jedelbo changed the base branch from master to feature/local-only August 21, 2024 09:39
src/realm.h Outdated
@@ -854,21 +854,6 @@ RLM_API void realm_config_set_scheduler(realm_config_t*, const realm_scheduler_t
*/
RLM_API void realm_config_set_sync_config(realm_config_t*, realm_sync_config_t*);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this (and a bunch of other methods in the C API) also be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed

Package.swift Outdated
@@ -15,7 +15,6 @@ var cxxSettings: [CXXSetting] = [
.define("REALM_INSTALL_LIBEXECDIR", to: ""),
.define("REALM_ENABLE_ASSERTIONS", to: "1"),
.define("REALM_ENABLE_ENCRYPTION", to: "1"),
.define("REALM_ENABLE_SYNC", to: "1"),
.define("REALM_ENABLE_GEOSPATIAL", to: "1"),
.define("REALM_APP_SERVICES", to: "1"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be removed as well?

@kraenhansen
Copy link
Member

Could this update the bingen/spec.yml as well?

@jedelbo jedelbo marked this pull request as ready for review August 26, 2024 12:46
@kraenhansen kraenhansen added the no-jira-ticket Skip checking the PR title for Jira reference label Aug 26, 2024
@@ -93,9 +93,6 @@ typedef struct realm_results realm_results_t;

/* Config types */
typedef struct realm_config realm_config_t;
typedef struct realm_app_config realm_app_config_t;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a reference to "audit" in this file that should be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

CMakeLists.txt Outdated
@@ -268,7 +267,6 @@ if(NOT EMSCRIPTEN)
endif()
option(REALM_ENABLE_MEMDEBUG "Add additional memory checks" OFF)
option(REALM_VALGRIND "Tell the test suite we are running with valgrind" OFF)
option(REALM_SYNC_MULTIPLEXING "Enables/disables sync session multiplexing by default" ON)
set(REALM_MAX_BPNODE_SIZE "1000" CACHE STRING "Max B+ tree node size.")
option(REALM_ENABLE_GEOSPATIAL "Enable geospatial types and queries." ON)
option(REALM_APP_SERVICES "Enable the default app services implementation." ON)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed

Comment on lines 156 to 157
// A factory function which produces an audit implementation.
std::shared_ptr<AuditConfig> audit_config;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the audit stuff in a subsequent round

@@ -43,51 +43,6 @@ endif()

file(GLOB RESOURCES "*.realm" "../*.pem")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all the test/*.pem files can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -116,63 +71,6 @@ create_coverage_target(generate-coverage ObjectStoreTests)
# add_bundled_test(ObjectStoreTests)
add_labeled_test(ObjectStoreTests-local objstore-local ObjectStoreTests "~[baas]")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is redundant now.

}
}

TEST_CASE("KeyPath generation - star notation") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test is still valid, it looks like it was accidentally included in the sync section.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch


# Run the setup_baas_host_local.sh script to configure and run baas on the remote host
# Add -v to this command for verbose script logging
./evergreen/setup_baas_host_local.sh -w ./baas-work-dir -u $BAAS_USER $OPT_BAAS_BRANCH $OPT_BAAS_PROXY \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the various baas helper scripts from this evergreen directory

@jedelbo jedelbo requested a review from ironage August 27, 2024 07:52
@jedelbo jedelbo merged commit 2276d69 into feature/local-only Aug 28, 2024
41 checks passed
@jedelbo jedelbo deleted the je/local-only branch August 28, 2024 08:26
@github-actions github-actions bot mentioned this pull request Sep 20, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes no-jira-ticket Skip checking the PR title for Jira reference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants