amalgm 0.1.237 → 0.1.238
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ const {
|
|
|
31
31
|
pruneMutationJournal,
|
|
32
32
|
} = require('../state/mutations');
|
|
33
33
|
const { registerReplica } = require('../state/replicas');
|
|
34
|
-
const { upsertWorkspace } = require('../workspace/store');
|
|
34
|
+
const { listWorkspaces, upsertWorkspace } = require('../workspace/store');
|
|
35
35
|
const { refreshRepoCards } = require('../workspace/cards');
|
|
36
36
|
const { checkpointFile, repoKeyOfCard } = require('../workspace/checkpoint');
|
|
37
37
|
const projectStream = require('../workspace/project-stream');
|
|
@@ -330,6 +330,7 @@ test('a collaborator binds the same repo to the owner project, not a parallel pr
|
|
|
330
330
|
assert.equal(projectForRepo('repo-shared').resourceId, shared);
|
|
331
331
|
assert.equal(projectForRepo('repo-shared').ownerUserId, '22222222-2222-4222-8222-222222222222');
|
|
332
332
|
assert.equal(projectForRepo('repo-shared').path, localPath);
|
|
333
|
+
assert.equal(listWorkspaces().find((workspace) => workspace.path === localPath)?.source, 'computer');
|
|
333
334
|
});
|
|
334
335
|
|
|
335
336
|
test('a repo project appends immutable machine records', async () => {
|
|
@@ -105,6 +105,14 @@ function bindProject(repoKey, resourceId, ownerUserId = null, localPath = null)
|
|
|
105
105
|
joinedAt: new Date().toISOString(),
|
|
106
106
|
};
|
|
107
107
|
writeRegistry(registry);
|
|
108
|
+
if (localPath) {
|
|
109
|
+
require('./store').upsertWorkspace({
|
|
110
|
+
path: localPath,
|
|
111
|
+
name: path.basename(localPath),
|
|
112
|
+
source: 'computer',
|
|
113
|
+
managed: false,
|
|
114
|
+
}, { source: 'workspace:code-project-bind' });
|
|
115
|
+
}
|
|
108
116
|
if (service.started) {
|
|
109
117
|
ensureProjectBound(projectForRepo(repoKey))
|
|
110
118
|
.then(() => {
|