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

Conditionally save project.properties #3348

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jisqyv
Copy link
Member

@jisqyv jisqyv commented Jan 22, 2025

We were always saving project.properties every time we loaded a project, even when there are no changes. This is because the computed settings don't store the qualifiedName (package name, called "main") as well as the project name itself. We add them here before the comparison.

Change-Id: I6b0e206dbef6bfc100c5c3ce89db1ca7395e17e0

General items:

  • I have updated the relevant documentation files under docs/
  • My code follows the:
  • ant tests passes on my machine (except the Blockly Tests, which don't run on my machine, yet.)

If your code changes how something works on the device (i.e., it affects the companion):

  • I branched from ucr
  • My pull request has ucr as the base

Further, if you've changed the blocks language or another user-facing designer/blocks API (added a SimpleProperty, etc.):

  • I have updated the corresponding version number in appinventor/components/src/.../common/YaVersion.java
  • I have updated the corresponding upgrader in appinventor/appengine/src/.../client/youngandroid/YoungAndroidFormUpgrader.java (components only)
  • I have updated the corresponding entries in appinventor/blocklyeditor/src/versioning.js

For all other changes:

  • I branched from master
  • My pull request has master as the base

What does this PR accomplish?

Reduces the I/O between the client and server by not saving project.properties when it really hasn't changed.

Description

Fixes # .

Resolves # .

We were always saving project.properties every time we loaded a
project, even when there are no changes. This is because the computed
settings don't store the qualifiedName (package name, called "main")
as well as the project name itself. We add them here before the
comparison.

Change-Id: I6b0e206dbef6bfc100c5c3ce89db1ca7395e17e0
@jisqyv jisqyv added pull request: needs review affects: master Is Still Draft So we can quickly see draft Pull Requests labels Jan 22, 2025
@jisqyv jisqyv requested a review from a team January 22, 2025 20:42
Copy link
Contributor

@mark-friedman mark-friedman left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants