Skip to content

Clean up source location #4183

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

Merged
merged 2 commits into from
Dec 10, 2020
Merged

Clean up source location #4183

merged 2 commits into from
Dec 10, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Dec 8, 2020

This commit cleans up some of the code structure around firestore-exp/firestore-lite.

The changes are:

  • Code for firestore-exp is moved from exp/src/api to src/exp. There is no code left in /exp.
  • Code for firestore-lite is moved from lite/src/api to src/lite. Also moved firestore-lite test to test/lite. There is no code left in /lite.
  • Removed old IntelliJ runner for firestore-exp. Removed the old exp support from the Karma runner.
  • Deleted the dependencies.json files that were used during development. Updated the build rules to instead create this these in a temporary location.
  • Moved Timestamp and GeoPoint to src/lite and added some export-only files to src/exp. The goal is to have a clear dependency chain where /api can only depend on /exp and /exp can only depend on /lite (the next step would be to move the UserDataReader to src/lite).

@changeset-bot
Copy link

changeset-bot bot commented Dec 8, 2020

⚠️ No Changeset found

Latest commit: 9195a40

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Dec 8, 2020

Size Analysis Report

Affected Products

No changes between base commit (2b8a03b) and head commit (a85ca5a).

Test Logs

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -168,8 +168,10 @@ export abstract class FieldValue {
abstract _toFieldTransform(context: ParseContext): FieldTransform | null;
}

// Warning: (ae-forgotten-export) The symbol "FirestoreService" needs to be exported by the entry point index.d.ts
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know how to interpret this comment. Is this a TODO? Is this suppressing a warning?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an artifact from our API generation pipeline, which produces these auto-generated files. My goal is to fix this problem in the current sprint.

@@ -15,40 +15,41 @@
* limitations under the License.
*/

// eslint-disable-next-line import/no-extraneous-dependencies
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth separating this group of imports from the rest and adding a comment about why this is necessary?

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 are now using eslint to sort our imports (possible since we no longer have cycled dependencies). With that, we lost all control over formatting and empty lines.

@schmidt-sebastian schmidt-sebastian merged commit 566a62d into master Dec 10, 2020
@firebase firebase locked and limited conversation to collaborators Jan 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants