Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
aea4929
Bump docker/build-push-action from 5 to 6
dependabot[bot] Jun 19, 2024
c9231fe
Add rectifying migration command
ozer550 Aug 5, 2024
e23c22a
Bump gunicorn from 20.1.0 to 23.0.0
dependabot[bot] Aug 14, 2024
a8adee4
change filter method to get
ozer550 Aug 22, 2024
326d394
Bump webpack from 5.81.0 to 5.94.0
dependabot[bot] Aug 30, 2024
2a963bb
Bump flask-cors from 4.0.1 to 5.0.0
dependabot[bot] Sep 3, 2024
76d343b
Bump axios from 1.7.2 to 1.7.7
dependabot[bot] Sep 4, 2024
1d867c5
add filter based on last modified
ozer550 Sep 10, 2024
5641e14
refine the migrations
ozer550 Sep 13, 2024
64fe92f
Adds padding to and centers Show more pagination button
akolson Sep 16, 2024
aa8bad3
Fixes resource count bug
akolson Sep 16, 2024
e2b0509
add translations for Show more button
akolson Sep 16, 2024
368a487
Move helpText to LicenseDropdown component
LianaHarris360 Sep 17, 2024
717d01f
Upload bloom format files in studio
nikkuAg Jun 12, 2024
8311a7c
Add migrations for bloom format
nikkuAg Jun 12, 2024
e7e51c8
Update the le-utils version to include blood format
nikkuAg Sep 15, 2024
6a2259b
Update migrations.
rtibbles Sep 17, 2024
de70311
Fix linting and brittle file upload tests for bloompub upload.
rtibbles Sep 17, 2024
69be8e5
Ensure that we can upload and display bloompub files properly.
rtibbles Sep 17, 2024
9e9bb7d
fixes pagination and count issues
akolson Sep 18, 2024
28e9672
Fixes inconsistent display of the 'Show more' button
akolson Sep 18, 2024
96df2e8
Fixes failing tests
akolson Sep 18, 2024
a188b31
Add comment explaining hardcoded styling
LianaHarris360 Sep 18, 2024
a14e6c5
Remove cross component translator for Show more translation
akolson Sep 18, 2024
4f10ab0
Fix save quick edit modals
AlexVelezLl Sep 18, 2024
6c3e03b
fix linting issues
AlexVelezLl Sep 18, 2024
ea91300
Add tests for mixed options in EditBooleanMapModal
AlexVelezLl Sep 18, 2024
1016852
Merge pull request #4590 from nikkuAg/bloomPub
rtibbles Sep 18, 2024
cc0b008
Merge pull request #4742 from AlexVelezLl/fix-save-quick-edit-modal
AllanOXDi Sep 19, 2024
7c55455
Fix selection on inherit metadata
AlexVelezLl Sep 19, 2024
c02201b
add tests
ozer550 Sep 20, 2024
ea652fc
add help text for disabled inputs to edit details page
LianaHarris360 Sep 20, 2024
6982d4d
Fix lintint
LianaHarris360 Sep 20, 2024
fbda0cb
Merge pull request #4746 from AlexVelezLl/fix-suggestion-multiple-res…
rtibbles Sep 20, 2024
5eed090
Update strings for crowdin and from crowdin.
rtibbles Sep 20, 2024
3fcdb58
Update gitignore to prevent committing intermediary CSV files.
rtibbles Sep 20, 2024
ab050d0
Tweak slightly brittle tests to pass.
rtibbles Sep 20, 2024
6b3338f
Conditionalize helper text for non-language metadata display
marcellamaki Sep 12, 2024
f50ee52
Merge pull request #4749 from rtibbles/translations
akolson Sep 21, 2024
67650dd
Merge pull request #4739 from LianaHarris360/overlapping-link-text
akolson Sep 21, 2024
09b981d
Merge pull request #4741 from akolson/pagination-follow-ups
akolson Sep 21, 2024
71ce33b
update tests
ozer550 Sep 23, 2024
8a3d383
Reset the inheritance modal after all inheriting nodes have been hand…
rtibbles Sep 23, 2024
22aeabd
Fixes decline invitation
akolson Sep 23, 2024
0730fbe
Fixes failing tests
akolson Sep 23, 2024
3c8d98e
Adds test for decline invitation
akolson Sep 23, 2024
a6f1719
Splts accept endpoint for clarity
akolson Sep 23, 2024
0284d8c
removes redundant method
akolson Sep 23, 2024
0b25c35
small tweak
akolson Sep 23, 2024
0fa0e31
renames test variable
akolson Sep 23, 2024
be2ddcd
Use the same extra_field key on the frontend as on the backend.
rtibbles Sep 23, 2024
e9e603c
Minor code improvements
akolson Sep 24, 2024
7e1af0c
Uncomments accept invitation tests
akolson Sep 24, 2024
37b3181
add implicit and explicit tests
ozer550 Sep 24, 2024
8f2e75a
Merge pull request #4750 from akolson/fix-decline-request-popup
akolson Sep 24, 2024
57d49e9
Add explicit 'inherit' argument to the moveContentNodes action.
rtibbles Sep 24, 2024
8c87dd4
Merge pull request #4745 from marcellamaki/metadata-modal-follow-up
akolson Sep 24, 2024
edf32e1
Fix bulk descendants boolean maps
AlexVelezLl Sep 24, 2024
9ad8ce7
cache channel_ids
ozer550 Sep 25, 2024
a1aaedd
add admin user_id
ozer550 Sep 25, 2024
f92dbea
Apply getMergedMapFields in applyRemooteChanges and setData inheritCh…
AlexVelezLl Sep 25, 2024
0672db0
Fix tests
AlexVelezLl Sep 25, 2024
8136e74
Explicitly check undefined when the desired value can be `false`.
rtibbles Sep 25, 2024
51eaa8f
Defer metadata setting if nodes are still being created from uploads.
rtibbles Sep 25, 2024
89ef2c3
Emit empty inheritance payload on cancel to ensure consistent behaviour.
rtibbles Sep 25, 2024
8f94abf
Fixes topic tree not showing
akolson Sep 26, 2024
0f1518f
return proper id instead of dict
ozer550 Sep 26, 2024
002bb57
Merge pull request #4759 from akolson/fixes-side-panel-topic-tree
akolson Sep 26, 2024
87c6fd1
Add some defensive programming checks.
rtibbles Sep 26, 2024
ebeb110
Merge pull request #4758 from rtibbles/gavelkind
akolson Sep 26, 2024
ff0cfda
adds a flag to the updateContentNode action to determine whether or n…
marcellamaki Sep 26, 2024
4f00c52
Don't set complete if completeCheck is false.
rtibbles Sep 26, 2024
b2f0a10
Remove console.log
AlexVelezLl Sep 27, 2024
7bfe2ae
Merge pull request #4761 from marcellamaki/ensure-only-check-completi…
akolson Sep 27, 2024
e5eab6c
Bump rollup from 2.75.5 to 2.79.2
dependabot[bot] Sep 27, 2024
6f6daf2
Merge pull request #4720 from ozer550/recorrect-incorrectly-changed-s…
akolson Sep 27, 2024
bbd4b07
Fixes count of resources/questions on copy
akolson Sep 27, 2024
72dae65
minor refactor
akolson Sep 27, 2024
9c28eb9
fixes bug with command pallet copy
akolson Sep 27, 2024
0ac2e9b
Merge pull request #4768 from akolson/fix-question-count-on-copy
akolson Sep 27, 2024
535dcd7
Merge unstable
AlexVelezLl Sep 27, 2024
0a6da56
Merge pull request #4751 from AlexVelezLl/fix-bulk-descendants-boolea…
akolson Sep 27, 2024
5827048
Properly handle metadata inheritance for non uploaded nodes in edit m…
rtibbles Sep 27, 2024
ac72144
Cleanup and simplify API and internal implementation.
rtibbles Sep 27, 2024
3eb4bda
Simplify condition for parent to ensure that inheritance is always ap…
rtibbles Sep 27, 2024
603fd56
Revert previous commit. Check if parent prop is null before uploading…
rtibbles Sep 27, 2024
73cbda7
Merge pull request #4769 from rtibbles/folders_and_exercises
rtibbles Sep 27, 2024
962a7e3
Fixes undo copy snackbar button
akolson Sep 30, 2024
5e8b711
make user_id required false
ozer550 Sep 30, 2024
681f20a
Merge pull request #4773 from ozer550/fix-user-id-required
akolson Sep 30, 2024
9a2afbb
Fixes failing tests
akolson Sep 30, 2024
16a3d4f
Merge pull request #4774 from akolson/fix-undo-on-copy
rtibbles Sep 30, 2024
bc703cd
Merge pull request #4692 from learningequality/dependabot/npm_and_yar…
rtibbles Oct 3, 2024
2c9e4cb
Bump express from 4.18.1 to 4.21.0
dependabot[bot] Oct 3, 2024
d547572
Merge pull request #4764 from learningequality/dependabot/npm_and_yar…
rtibbles Oct 3, 2024
20efb00
Merge pull request #4703 from learningequality/dependabot/pip/flask-c…
rtibbles Oct 3, 2024
d3a9d43
Merge pull request #4734 from learningequality/dependabot/npm_and_yar…
rtibbles Oct 3, 2024
d05158e
Merge pull request #4638 from learningequality/dependabot/pip/gunicor…
rtibbles Oct 3, 2024
d5b253c
Update webpack config to avoid errors when providing process/browser.
rtibbles Oct 3, 2024
04ef78e
new gherkin scenarios
Oct 9, 2024
971a346
Merge pull request #4784 from pcenov/gherkins-bulk-edit
radinamatic Oct 10, 2024
2143a73
Bump http-proxy-middleware from 2.0.6 to 2.0.7
dependabot[bot] Oct 25, 2024
6ac3095
Merge pull request #4797 from learningequality/dependabot/npm_and_yar…
rtibbles Oct 25, 2024
5d140c8
Merge pull request #4707 from learningequality/dependabot/npm_and_yar…
rtibbles Oct 25, 2024
1d0103f
Merge pull request #4596 from learningequality/dependabot/github_acti…
rtibbles Oct 25, 2024
e4ad229
Bump werkzeug from 3.0.3 to 3.0.6
dependabot[bot] Oct 25, 2024
8799b85
Merge pull request #4798 from learningequality/dependabot/pip/werkzeu…
rtibbles Oct 25, 2024
f292983
Welcome Embeddings :rocket:
vkWeb Nov 1, 2023
435bd36
New embedding model structure
vkWeb Nov 8, 2023
d3a22fe
Enable extension only during pytest & docs update
vkWeb Nov 8, 2023
f0a4043
Use custom db backend for pytest instead of hacking migrations
vkWeb Nov 10, 2023
7c1e006
Add creds to PG service in workflow and update postgres image
bjester Dec 18, 2023
1081e8f
Return test db name, now its perfect.
vkWeb Dec 21, 2023
b2ae604
Create and persist bucket
vkWeb Dec 23, 2023
21ec8c3
Allow building of postgres image when pushing to search-recommendations
bjester Apr 3, 2024
ad34389
Reorganize migrations after unstable merge
bjester Apr 3, 2024
4807874
Add SessionWithMaxConnectionAge
AlexVelezLl Mar 21, 2024
3c6e4ac
Base implementation
AlexVelezLl Apr 1, 2024
c387fa3
Add unit tests
AlexVelezLl Apr 1, 2024
08f885b
Refactor singleton
AlexVelezLl Apr 4, 2024
046576c
Refactor retry strategy
AlexVelezLl Apr 4, 2024
b4f4027
Refactor tests
AlexVelezLl Apr 9, 2024
0491c87
Add timeout to request
AlexVelezLl May 6, 2024
dfdada9
Update timeout value
AlexVelezLl May 6, 2024
dc893ae
Address comments
AlexVelezLl May 15, 2024
aa040bf
adds initial embed topics and content logic
akolson Jun 5, 2024
76e3a98
Refactors code
akolson Jun 6, 2024
4680760
Refactors code
akolson Jun 6, 2024
9a63c99
adds tests for embed_topics method
akolson Jun 6, 2024
36fa8e5
adds tests for embed_content method
akolson Jun 6, 2024
b71344f
add docstring to embed methods
akolson Jun 13, 2024
0ab478c
updates embed_content to use methods as building blocks
akolson Jun 18, 2024
3fba736
Implements extract content urls
akolson Jul 11, 2024
10e67f4
Runs recommendations cache migrations
akolson Jul 11, 2024
f884ae5
clean up and tests
akolson Jul 15, 2024
c8c70b9
Remove extra migrations
akolson Jul 16, 2024
a12e4c5
Adds new migration
akolson Jul 16, 2024
087493b
implements feedback
akolson Jul 24, 2024
a935c09
Use values to query dictionary
akolson Jul 26, 2024
5fa30d8
Improves cache implementation
akolson Jul 29, 2024
08b8c3b
Adjusts docstring description
akolson Jul 30, 2024
96b8d25
Adds unique constraint to cache model
akolson Jul 30, 2024
e872f1c
Adds indexes for optimized data querying
akolson Jul 30, 2024
e433650
Adds migrations
akolson Jul 30, 2024
12e5155
Writes queries to get main_tree_id
akolson Aug 1, 2024
cce9cb3
Reruns migrations
akolson Aug 1, 2024
3ff40f3
adds more tests
akolson Aug 7, 2024
a853e1e
Fixes failing tests
akolson Aug 7, 2024
3e3d8d9
adds more tests
akolson Aug 7, 2024
d96fabe
cte implementation initial commit
akolson Aug 8, 2024
8bb9111
Implements CTE to get recommendations
akolson Aug 9, 2024
920344e
Reruns conflicting migrations
akolson Aug 26, 2024
a1d73e2
Merge remote-tracking branch 'upstream/search-recommendations' into m…
akolson Oct 31, 2024
0e0f77e
renames auto generated migrations
akolson Oct 31, 2024
bb4be9d
Reruns migrations
akolson Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/containerbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index

- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./docker
file: ./docker/Dockerfile.postgres.dev
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./
file: ./k8s/images/nginx/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ webpack-stats\.json
storybook-static/

# i18n
/contentcuration/locale/CSV_FILES/*
/contentcuration/locale/**/LC_MESSAGES/*.csv

# pyenv
.python-version
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ migrate:
# 4) Remove the management command from this `deploy-migrate` recipe
# 5) Repeat!
deploy-migrate:
echo "Nothing to do here!"
python contentcuration/manage.py rectify_incorrect_contentnode_source_fields

contentnodegc:
python contentcuration/manage.py garbage_collect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@
retryFailedCopy: withChangeTracker(function(changeTracker) {
this.updateContentNode({
id: this.nodeId,
checkComplete: true,
[COPYING_STATUS]: COPYING_STATUS_VALUES.COPYING,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ function mountComponent(opts = {}) {
namespaced: true,
getters: {
isNodeInCopyingState: () => jest.fn(),
getContentNodesCount: () =>
jest.fn().mockReturnValue({
resource_count: TOPIC_NODE.resource_count,
assessment_item_count: EXERCISE_NODE.assessment_item_count,
}),
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,11 @@
};
},
computed: {
...mapGetters('contentNode', ['isNodeInCopyingState', 'hasNodeCopyingErrored']),
...mapGetters('contentNode', [
'isNodeInCopyingState',
'hasNodeCopyingErrored',
'getContentNodesCount',
]),
isCompact() {
return this.compact || !this.$vuetify.breakpoint.mdAndUp;
},
Expand All @@ -273,14 +277,15 @@
return { title, kind, src, encoding };
},
subtitle() {
const count = this.getContentNodesCount(this.node.id);
switch (this.node.kind) {
case ContentKindsNames.TOPIC:
return this.$tr('resources', {
value: this.node.resource_count || 0,
value: count?.resource_count || 0,
});
case ContentKindsNames.EXERCISE:
return this.$tr('questions', {
value: this.node.assessment_item_count || 0,
value: count?.assessment_item_count || 0,
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
},
{
label: this.$tr('makeACopy'),
onClick: this.duplicateNode,
onClick: () => this.duplicateNode(this.nodeId),
condition: this.canEdit,
},
{
Expand Down Expand Up @@ -282,9 +282,11 @@
});
},
moveNode(target) {
return this.moveContentNodes({ id__in: [this.nodeId], parent: target }).then(
this.$refs.moveModal.moveComplete
);
return this.moveContentNodes({
id__in: [this.nodeId],
parent: target,
inherit: this.node.parent !== target,
}).then(this.$refs.moveModal.moveComplete);
},
getRemoveNodeRedirect() {
// Returns a callback to do appropriate post-removal navigation
Expand Down Expand Up @@ -322,7 +324,7 @@
removeNode: withChangeTracker(function(id__in, changeTracker) {
this.trackAction('Delete');
const redirect = this.getRemoveNodeRedirect();
return this.moveContentNodes({ id__in, parent: this.trashId }).then(() => {
return this.moveContentNodes({ id__in, parent: this.trashId, inherit: false }).then(() => {
redirect();
this.showSnackbar({
text: this.$tr('removedItems'),
Expand All @@ -345,7 +347,7 @@
}
);
}),
duplicateNode: withChangeTracker(async function(changeTracker) {
duplicateNode: withChangeTracker(async function(nodeId, changeTracker) {
this.trackAction('Copy');
this.showSnackbar({
duration: null,
Expand All @@ -356,8 +358,8 @@
// actionCallback: () => changeTracker.revert(),
});
const copiedContentNode = await this.copyContentNode({
id: this.nodeId,
target: this.nodeId,
id: nodeId,
target: nodeId,
position: RELATIVE_TREE_POSITIONS.RIGHT,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@
},
canSave() {
if (this.hasMixedCategories) {
return Object.values(this.selectedValues).some(value => value.length > 0);
return Object.values(this.selectedValues).some(
value => value.length === this.nodes.length
);
}
return !this.error;
},
Expand Down Expand Up @@ -174,7 +176,7 @@
Object.assign(fieldValue, currentNode[this.field] || {});
}
Object.entries(this.selectedValues)
.filter(([value]) => value.length === this.nodeIds.length)
.filter(entry => entry[1].length === this.nodeIds.length)
.forEach(([key]) => {
fieldValue[key] = true;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@
box
:required="isEditable"
:disabled="!isEditable"
:helpText="helpText"
/>
</div>
<p v-if="helpText" class="help" style="margin-bottom: 8px">
{{ helpText }}
</p>
</div>
<div class="form-item">
<div class="input-container">
Expand Down Expand Up @@ -293,7 +291,7 @@
aggregatorToolTip:
'Website or org hosting the content collection but not necessarily the creator or copyright holder',
copyrightHolderLabel: 'Copyright holder',
cannotEditPublic: 'Cannot edit for public channel resources',
cannotEditPublic: 'Not editable for resources from public channels',
editOnlyLocal: 'Edits will be reflected only for local resources',
mixed: 'Mixed',
saveAction: 'Save',
Expand Down
Loading