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

Bulk Edit Release #4635

Merged
merged 943 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
943 commits
Select commit Hold shift + click to select a range
4dcc60d
Fix tests
AlexVelezLl Aug 13, 2024
0da7e02
Bump tabulate from 0.8.2 to 0.9.0
dependabot[bot] Aug 14, 2024
72eb701
Merge pull request #4461 from learningequality/studio-usability-enhan…
akolson Aug 14, 2024
d201d84
Solve save edit completion modal
AlexVelezLl Aug 20, 2024
fbd32df
Merge pull request #4537 from ozer550/implement-feedback-core-seriali…
ozer550 Aug 20, 2024
fe7cdb5
Fix duplicate resources
AlexVelezLl Aug 20, 2024
3ebe652
Merge pull request #4609 from nucleogenesis/public-policy
rtibbles Aug 20, 2024
d0b1e54
Merge pull request #4637 from learningequality/dependabot/pip/tabulat…
rtibbles Aug 20, 2024
36ca4e6
Tweak feedback tests to ensure feature flags are set.
rtibbles Aug 20, 2024
72d269f
Merge pull request #4661 from AlexVelezLl/fix-copy-resource
rtibbles Aug 20, 2024
966ae7c
Merge pull request #4662 from rtibbles/feedback_tests
rtibbles Aug 20, 2024
287b3e3
Add simplistic cursor pagination to contentnode viewset to allow pagi…
rtibbles Jul 23, 2024
1fc3f1a
Simplify pagination support in the resource layer to only work by ite…
rtibbles Aug 20, 2024
c6e4213
Add simple pagination to the contents of topics.
rtibbles Aug 20, 2024
cf8d7b2
Fix tests.
rtibbles Jul 24, 2024
a5dfad6
Correct clipboard resource and topic folder counts
LianaHarris360 Aug 20, 2024
9f40dab
Merge pull request #4660 from AlexVelezLl/fix-comopletion-modal
rtibbles Aug 20, 2024
2d3ea18
Prevent errors when extra_fields are null.
rtibbles Aug 20, 2024
892ab07
Merge pull request #4616 from rtibbles/paginate_topics
rtibbles Aug 20, 2024
a8adee4
change filter method to get
ozer550 Aug 22, 2024
a428edd
Implements check to prevent channel having different language from co…
akolson Aug 22, 2024
3d4e202
remove async on mounted
akolson Aug 22, 2024
4b7697d
add validation for threshold none invalid cases
ozer550 Aug 14, 2024
230e65e
fix super update error
ozer550 Aug 22, 2024
7806c43
Fixes channel language update
akolson Aug 22, 2024
525a1b7
Fix the undo button selection issue in the snackbar after resource de…
LianaHarris360 Aug 22, 2024
34a940f
Merge pull request #4642 from ozer550/fix-completion-criteria-edge-case
rtibbles Aug 22, 2024
625441b
Add new shared string for 'Changes saved' that can be used across sna…
marcellamaki Aug 22, 2024
869b4d3
Update logic
akolson Aug 22, 2024
b06091b
(Change|Reset)Password components apply length validation
nucleogenesis Aug 22, 2024
5935ae4
Policy modals send policy to accept when accept is emitted
nucleogenesis Aug 22, 2024
d211d79
When only one resource is individually selected, do not write '1 reso…
marcellamaki Aug 22, 2024
0a60274
Merge pull request #4672 from marcellamaki/remove-single-resource-label
rtibbles Aug 23, 2024
6b6c73b
Update snackbar to use simpler language
marcellamaki Aug 22, 2024
82a7746
Fixes frontend to properly call invitation accept endpoint.
rtibbles Aug 23, 2024
e5eecb2
Merge pull request #4671 from marcellamaki/update-snackbar
rtibbles Aug 23, 2024
193c1c5
Merge pull request #4670 from nucleogenesis/fix--policy-modals-bug-i-…
rtibbles Aug 23, 2024
a9bd3b9
Merge pull request #4667 from LianaHarris360/fix-undo-remove-resource
rtibbles Aug 23, 2024
e3795f1
Fixes long running and failing tests
akolson Aug 23, 2024
9db159a
Merge pull request #4632 from rtibbles/this_is_unpublishable
bjester Aug 23, 2024
7f689c3
Merge pull request #4631 from LianaHarris360/clipboard-resource-count
LianaHarris360 Aug 23, 2024
f939b80
Always save the pagination result, so we invalidate the cache if needed.
rtibbles Aug 23, 2024
d6baa1f
Fixes UI glitch on cards in collections
akolson Aug 23, 2024
ace7f64
Removes logging statement
akolson Aug 23, 2024
773b3be
Adds tests to verify clickability of channel items
akolson Aug 23, 2024
88470da
Remove spaces
akolson Aug 23, 2024
143ca8f
Consolidate selection text formatting.
rtibbles Aug 23, 2024
4dc29f2
Fixes the breadcrumb wrap for long folder names
akolson Aug 24, 2024
58da0a1
Add MVP modal for applying inheritable metadata
marcellamaki Aug 20, 2024
944a1cc
First pass data fetching, merging and comparison.
rtibbles Aug 21, 2024
4a8b492
Update inheritable metadata to handle saving preferences on a folder …
rtibbles Aug 26, 2024
893563d
Restrict publishing time metadata inheritance to cheffed channels.
rtibbles Aug 26, 2024
1850cde
CSS updates to modal for better alignment to spec
marcellamaki Aug 21, 2024
4069f69
Don't show modal if nothing to inherit
marcellamaki Aug 23, 2024
94937a6
Update the modal and manage the metadata keys and translation
marcellamaki Aug 23, 2024
13b434c
Fixes conflicts
akolson Aug 26, 2024
8408593
fix tests w/ nextTick in resetPassword spec
nucleogenesis Aug 26, 2024
f508463
Merge pull request #4663 from rtibbles/null_extra_fields
rtibbles Aug 26, 2024
e5ee3cf
Merge pull request #4677 from akolson/fixes-breadcrumb-wrap-issue
akolson Aug 27, 2024
96efd19
Merge pull request #4675 from akolson/my-channel-cards-fix
akolson Aug 27, 2024
9370553
Merge pull request #4666 from akolson/fix-channel-lang-discrepancies
marcellamaki Aug 27, 2024
bb7a8a8
Merge pull request #4668 from nucleogenesis/validate-password-length-…
marcellamaki Aug 27, 2024
66f955c
Merge pull request #4673 from rtibbles/youre_not_on_the_list_youre_no…
marcellamaki Aug 27, 2024
57debb9
Merge pull request #4676 from rtibbles/2_resources_are_better_than_1_…
marcellamaki Aug 27, 2024
fe60a09
Add missing non-conforming keys to metadata translation.
rtibbles Aug 27, 2024
7214b93
Update inheritance metadata labels.
rtibbles Aug 27, 2024
9013512
Centralize metadata inheritance for all appropriate moves and all cop…
rtibbles Aug 27, 2024
894562c
sets modal height to fix Kselect glitch temporarily
akolson Aug 29, 2024
684a21f
adds comments for the temporal fix
akolson Aug 29, 2024
2029e0e
Remove unneeded saved search edit functionality.
rtibbles Aug 29, 2024
e29c85a
Indicate when a search has already been saved. Disable the saved sear…
rtibbles Aug 29, 2024
e07fcef
Update strings following UX writing review
marcellamaki Aug 26, 2024
507fa32
Merge pull request #4682 from marcellamaki/update-strings-for-bulk-ed…
marcellamaki Aug 29, 2024
571ce63
Small cleanup on conditions, ensure action is properly imported
marcellamaki Aug 29, 2024
a301273
Update strings after discussions with Radina and Richard
marcellamaki Aug 29, 2024
da22850
Add a string for helper text that explains how selections are added t…
marcellamaki Aug 29, 2024
b7519a2
Use contentNodesMap to find node kind if missing in clipboardNodesMap
LianaHarris360 Aug 29, 2024
83a5c0a
Format frontend to pass lint checks
LianaHarris360 Aug 29, 2024
32dbb83
Merge pull request #4689 from marcellamaki/multi-resource-metadata-st…
marcellamaki Aug 30, 2024
b48d9ea
Merge pull request #4664 from marcellamaki/upload-or-move-bulk-editing
marcellamaki Aug 30, 2024
42da9d3
Merge pull request #4686 from akolson/fix-channel-lang-discrepancies
akolson Aug 30, 2024
5a668e9
Standardize capitalization and wording
marcellamaki Aug 30, 2024
fad3ca1
Track analytics events related to quick edit modals, relative to lega…
bjester Aug 30, 2024
d078f45
Merge pull request #4694 from marcellamaki/strings-cleanup
marcellamaki Aug 30, 2024
b98596f
Ensure that frontend generated searches don't get duplicated because …
rtibbles Aug 30, 2024
61eda08
Properly set and clear the search textbox on navigation.
rtibbles Aug 30, 2024
a0048b1
Moved saved search modal into main import flow.
rtibbles Aug 30, 2024
9bb8871
Navigate away from search results on clear.
rtibbles Aug 30, 2024
a3746ad
Add console error if kind is missing from contentNode
LianaHarris360 Aug 30, 2024
64aed98
Merge pull request #4690 from LianaHarris360/correct-topic-count
LianaHarris360 Aug 30, 2024
127361b
Merge pull request #4687 from rtibbles/searching_for_saves_in_all_the…
rtibbles Aug 30, 2024
0536e61
Fix saved search endpoint and add regression tests.
rtibbles Sep 3, 2024
672e813
Bump slackapi/slack-github-action from 1.26.0 to 1.27.0
dependabot[bot] Sep 4, 2024
c0f784e
Merge pull request #4704 from rtibbles/uuid_no_i_uid
akolson Sep 4, 2024
0b8eaf0
add edit permission check on edit title and description
akolson Sep 4, 2024
e354de9
Ensure tracking changed as any edit interaction
bjester Sep 4, 2024
0216213
Merge pull request #4500 from learningequality/transpilation-for-the-…
bjester Sep 4, 2024
9c1ec32
Merge pull request #4696 from bjester/bulk-analytics-datalayer
bjester Sep 4, 2024
2c435b3
cleans up the recommendedresource card
AllanOXDi Sep 5, 2024
6040a2d
grammar/consistency fix
marcellamaki Sep 5, 2024
26fecec
Merge pull request #4712 from AllanOXDi/clean-up-kcard
akolson Sep 5, 2024
2f9ce02
Merge pull request #4713 from marcellamaki/string-fixes
marcellamaki Sep 5, 2024
f5ee42d
remove mixed tag as a category
AllanOXDi Sep 6, 2024
1aa3da8
removes indeterminate state checkboxes
AllanOXDi Sep 6, 2024
dc8789a
add helper text
AllanOXDi Sep 6, 2024
b7f89b4
Merge pull request #4674 from rtibbles/paging_dr_idiot
akolson Sep 6, 2024
a85aac1
Move content of AboutLicenseModal to LicenseDropdown with toggle button
LianaHarris360 Sep 6, 2024
0cefdce
Remove AboutLicenseModal and references
LianaHarris360 Sep 6, 2024
7c97b71
Merge pull request #4710 from akolson/bulk-edit-permission-tweaks
akolson Sep 9, 2024
0b45e89
Fix mis-matched string that was not updated properly
marcellamaki Sep 9, 2024
b3978b5
Fix language filter
AlexVelezLl Sep 9, 2024
9d74ea4
Merge pull request #4717 from marcellamaki/fix-requirements-string
marcellamaki Sep 9, 2024
e401f2e
Fix multi-select filter
AlexVelezLl Sep 9, 2024
6bf225b
Remove unused props
AlexVelezLl Sep 9, 2024
8b65d99
Merge pull request #4718 from AlexVelezLl/fix-filter-checkbox
akolson Sep 9, 2024
a3a0fe0
Fix string typos and license input selection misalignment
LianaHarris360 Sep 9, 2024
59154c0
fixes disabling of the save search link when search results exist
akolson Sep 9, 2024
89bd639
bump KDS version to include KCheckbox updates
nucleogenesis Sep 3, 2024
4847969
lock yarn
nucleogenesis Sep 9, 2024
ea4709b
Merge pull request #4705 from nucleogenesis/bump-kds-pin-volta
akolson Sep 10, 2024
1d867c5
add filter based on last modified
ozer550 Sep 10, 2024
8c717d0
proper colors on selected-indeterminate and non-selected in clipboard
nucleogenesis Aug 28, 2024
78221d4
Add mininmum width to license dropdown and adjust background color
LianaHarris360 Sep 10, 2024
86c0d78
fixes strings
AllanOXDi Sep 10, 2024
fd98799
Merge pull request #4719 from akolson/fix-disabled-save-search
akolson Sep 11, 2024
99dd775
Add translations for bulk editing feature - 2024q3 release
marcellamaki Sep 11, 2024
7a82178
Merge pull request #4725 from marcellamaki/bulk-editing-feature-crowd…
marcellamaki Sep 11, 2024
490e4f1
change default value of ResizableDrawer to correct value
ozer550 Sep 12, 2024
bc16f6f
Merge pull request #4726 from ozer550/fix-default-sidebar-width
akolson Sep 12, 2024
e0d2ab9
Merge pull request #4691 from nucleogenesis/fix--clipbaord-checkboxes…
akolson Sep 12, 2024
1bb1197
Merge pull request #4716 from LianaHarris360/update-about-licenses
LianaHarris360 Sep 12, 2024
239a3f6
Revert "Update how About License information is displayed in EditSour…
LianaHarris360 Sep 12, 2024
f029bd4
Merge pull request #4730 from learningequality/revert-4716-update-abo…
LianaHarris360 Sep 12, 2024
ed09ee7
About Licenses display changes + revise license URL return method to …
LianaHarris360 Sep 12, 2024
cc6e7a0
code cleanup
AllanOXDi Sep 12, 2024
a57b9f1
fixes failing test
AllanOXDi Sep 12, 2024
5641e14
refine the migrations
ozer550 Sep 13, 2024
6bef66f
Add try...catch statement to getLicenseUrl()
LianaHarris360 Sep 13, 2024
b208530
minor clean up
AllanOXDi Sep 13, 2024
cfff054
Merge pull request #4714 from AllanOXDi/bulk_editting-fix
marcellamaki Sep 13, 2024
eeffb7c
Merge pull request #4731 from LianaHarris360/about-licenses-update
akolson Sep 13, 2024
d1ffde7
Revert "Fixed field is required' validation"
AllanOXDi Sep 13, 2024
d3ad802
Merge pull request #4732 from learningequality/revert-4714-bulk_editt…
akolson Sep 13, 2024
b1b1786
Add a rootId watcher to TreeViewBase
LianaHarris360 Sep 13, 2024
fac36cf
implement conditional rendering of StudioTree based on the existence …
LianaHarris360 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
35dcb4a
modified the canSave function to enableble saving of empty booleans
AllanOXDi Sep 16, 2024
8f2afd1
regression test for content node remaining complete after update chan…
nucleogenesis Aug 30, 2024
5736b63
contentnode.mark_complete in FileSerializer#update
nucleogenesis Aug 30, 2024
fad1c74
create Change event on file-upload when contentnode is complete; cove…
nucleogenesis Sep 5, 2024
84520f0
test_file: query DB rather than use mocks
nucleogenesis Sep 16, 2024
0e1154f
Merge pull request #4697 from nucleogenesis/fix--contentnode-incomple…
rtibbles Sep 16, 2024
8c4c191
Reset scroll on blush for multiselects and language filter
AlexVelezLl Sep 16, 2024
b83e0c6
Use mapActions to load current channel
LianaHarris360 Sep 17, 2024
368a487
Move helpText to LicenseDropdown component
LianaHarris360 Sep 17, 2024
2f4d211
Add regression test and fix for invitation not being marked as accepted.
rtibbles Sep 17, 2024
f0091d3
Merge pull request #4708 from learningequality/dependabot/github_acti…
rtibbles 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
e45d76c
clean up isCheckboxIndeterminate
AllanOXDi Sep 17, 2024
7e80cf7
unused test
AllanOXDi Sep 17, 2024
de70311
Fix linting and brittle file upload tests for bloompub upload.
rtibbles Sep 17, 2024
5d24098
clean up and lint
AllanOXDi Sep 17, 2024
5f998c1
quick restore
AllanOXDi Sep 17, 2024
69be8e5
Ensure that we can upload and display bloompub files properly.
rtibbles Sep 17, 2024
55432b4
quick restore again
AllanOXDi Sep 17, 2024
7474aac
Merge pull request #4737 from AllanOXDi/bulk_editting-fix
AllanOXDi 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
ecfbc9b
Merge pull request #4740 from rtibbles/repondez_sil_vous_plait
akolson Sep 18, 2024
40918b6
Merge pull request #4733 from LianaHarris360/incorrect-view-only-channel
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
c10624b
Merge pull request #4738 from AlexVelezLl/fix-reset-scroll
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
5ec82e3
Fix RTL in Language filter
AlexVelezLl Sep 16, 2024
5ba1f37
Update kds version
AlexVelezLl Sep 18, 2024
ef6b7d8
Lint files
AlexVelezLl Sep 18, 2024
45bf94e
Merge pull request #4735 from AlexVelezLl/fix-label-dir
akolson 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
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
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Studio GitHub Discussions
url: https://github.com/learningequality/studio/discussions
about: Please ask general questions about contributing to Studio or report development server issues here.
- name: Learning Equality Community Forum
url: https://community.learningequality.org/
about: Ask and answer questions about Learning Equality's products and tools, share your experiences using Kolibri, and connect with users around the world.
17 changes: 14 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,30 @@ updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
day: "wednesday"
time: "00:00"

# Maintain dependencies for Javascript
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
day: "wednesday"
time: "00:00"
groups:
babel:
patterns:
- "@babel/*"

# Maintain dependencies for Github Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
day: "wednesday"
time: "00:00"
groups:
github:
patterns:
- "actions/*"
105 changes: 105 additions & 0 deletions .github/workflows/containerbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: Container Build

on:
push:
branches:
- unstable
- hotfixes
- master
tags:
- 'v*'
pull_request:

jobs:
pre_postgres:
name: Path match check - postgres
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
skip_after_successful_duplicate: false
github_token: ${{ github.token }}
paths: '["docker/Dockerfile.postgres.dev", ".github/workflows/containerbuild.yml"]'

build_and_push_postgres:
name: Postgres - build and push Docker image to GitHub Container Registry
needs: pre_postgres
if: ${{ needs.pre_postgres.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/learningequality/postgres
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./docker
file: ./docker/Dockerfile.postgres.dev
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}

pre_nginx:
name: Path match check - nginx
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
skip_after_successful_duplicate: false
github_token: ${{ github.token }}
paths: '["k8s/images/nginx/*", ".github/workflows/containerbuild.yml"]'

build_nginx:
name: nginx - test build of nginx Docker image
needs: pre_nginx
if: ${{ needs.pre_nginx.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: ./
file: ./k8s/images/nginx/Dockerfile
platforms: linux/amd64
push: false
16 changes: 8 additions & 8 deletions .github/workflows/deploytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.x'
- name: Cache Node.js modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -52,12 +52,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.10'
- name: pip cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pyprod-${{ hashFiles('requirements.txt') }}
Expand All @@ -69,11 +69,11 @@ jobs:
pip install pip-tools
pip-sync requirements.txt
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.x'
- name: Cache Node.js modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/frontendlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.x'
- name: Cache Node.js modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -49,7 +49,7 @@ jobs:
if: github.event.pull_request && github.event.pull_request.head.repo.full_name == github.repository
id: git-check
run: echo ::set-output name=modified::$(git diff-index --name-only HEAD)
- uses: tibdex/github-app-token@v1
- uses: tibdex/github-app-token@v2
if: github.event.pull_request && github.event.pull_request.head.repo.full_name == github.repository && steps.git-check.outputs.modified != ''
id: generate-token
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontendtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.x'
- name: Cache Node.js modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/notify_team_new_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Send a slack notification when a contributor comments on issue

on:
issue_comment:
types: [created]

jobs:
contributor_issue_comment:
name: Contributor issue comment

if: >-
${{
!github.event.issue.pull_request &&
github.event.comment.author_association != 'MEMBER' &&
github.event.comment.author_association != 'OWNER'
}}

runs-on: ubuntu-latest
steps:
- name: Escape title double quotes
id: escape_title
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
run: echo "ISSUE_TITLE=${ISSUE_TITLE//\"/\\\"}" >> "$GITHUB_OUTPUT"

- name: Send message to Slack channel
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
uses: slackapi/[email protected]
with:
payload: |
{
"text": "*[Studio] New comment on issue: <${{ github.event.issue.html_url }}#issuecomment-${{ github.event.comment.id }}|${{ steps.escape_title.outputs.ISSUE_TITLE }} by ${{ github.event.comment.user.login }}>*"
}
8 changes: 4 additions & 4 deletions .github/workflows/pythontest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ jobs:
-v /tmp/minio_data:/data \
-v /tmp/minio_config:/root/.minio \
minio/minio server /data
- name: Set up Python 3.9
uses: actions/setup-python@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.10'
- name: pip cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pytest-${{ hashFiles('requirements.txt', 'requirements-dev.txt') }}
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
15 changes: 0 additions & 15 deletions .readthedocs.yml

This file was deleted.

28 changes: 28 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!-- Also update README.md (duplicate) -->
## How can I contribute?

1. 📙 **Skim through the [Developer documentation](./docs/_index.md)** to understand where to refer later on.
2. 💻 **Follow the [Local development instructions](./docs/local_dev_docker.md) to set up your development server.**
3. 🔍 **Search for issues tagged as [help wanted](https://github.com/learningequality/studio/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22+no%3Aassignee) or [good first issue](https://github.com/learningequality/studio/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+no%3Aassignee).**
4. 🗣️ **Ask us for an assignment in the comments of an issue you've chosen.** Please request assignment of a reasonable amount of issues at a time. Once you finish your current issue or two, you are welcome to ask for more.

**❓ Where to ask questions**

- For anything development related, refer to the [Developer documentation](./docs/_index.md) at first. Some answers may already be there.
- For questions related to a specific issue or assignment requests, use the corresponding issue's comments section.
- Visit [GitHub Discussions](https://github.com/learningequality/studio/discussions) to ask about anything related to contributing or to troubleshoot development server issues.

**👥 How to connect**

- We encourage you to visit [GitHub Discussions](https://github.com/learningequality/studio/discussions) to connect with the Learning Equality team as well as with other contributors.
- If you'd like to contribute on a regular basis, we are happy to invite you to our open-source community Slack channel. Get in touch with us at [email protected] to receive an invitation.

---

🕖 Please allow us a few days to reply to your comments. If you don't hear from us within a week, reach out via [GitHub Discussions](https://github.com/learningequality/studio/discussions).

As soon as you open a pull request, it may take us a week or two to review it as we're a small team. We appreciate your contribution and will provide feedback.

---

*Thank you for your interest in contributing! Learning Equality was founded by volunteers dedicated to helping make educational materials more accessible to those in need, and every contribution makes a difference.*
6 changes: 4 additions & 2 deletions 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 Expand Up @@ -136,7 +136,9 @@ dummyusers:
hascaptions:
python contentcuration/manage.py set_orm_based_has_captions

export COMPOSE_PROJECT_NAME=studio_$(shell git rev-parse --abbrev-ref HEAD)
BRANCH_NAME := $(shell git rev-parse --abbrev-ref HEAD | sed 's/[^a-zA-Z0-9_-]/-/g')

export COMPOSE_PROJECT_NAME=studio_$(BRANCH_NAME)

purge-postgres: .docker/pgpass
-PGPASSFILE=.docker/pgpass dropdb -U learningequality "kolibri-studio" --port 5432 -h localhost
Expand Down
Loading
Loading