diff --git a/.github/workflows/ci_pipeline.yml b/.github/workflows/ci_pipeline.yml index abc76662f556e..8e1d120d76e84 100644 --- a/.github/workflows/ci_pipeline.yml +++ b/.github/workflows/ci_pipeline.yml @@ -2,7 +2,11 @@ name: CI Pipeline on: workflow_dispatch: - # Add additional trigger events as needed (e.g., push, pull_request, etc.) + inputs: + pr_id: + description: 'Pull Request ID (default: 55766)' + required: false + default: '55766' env: AWS_DEFAULT_REGION: us-east-1 @@ -16,35 +20,17 @@ jobs: if: github.actor == 'pablo-code-org' steps: - - name: Checkout Repository - uses: actions/checkout@v2 - with: - path: code-dot-org - - - name: Find and Cache Stale Files - id: stalefiles - run: | - find code-dot-org -type f -not -path './.git/*' -mtime +730 > stale_files.txt - echo "::set-output name=stale_hash::$(sha256sum stale_files.txt | cut -d ' ' -f1)" - - - name: Cache stale files - uses: actions/cache@v2 - with: - path: | - $(cat stale_files.txt) - key: ${{ runner.os }}-stale-${{ steps.stalefiles.outputs.stale_hash }} - - - name: Get Branch Name from Hardcoded Pull Request ID + - name: Get Branch Name from Pull Request ID id: get_branch run: | - PR_ID=55766 + PR_ID=${{ github.event.inputs.pr_id }} PR_DATA=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ https://api.github.com/repos/code-dot-org/code-dot-org/pulls/$PR_ID) BRANCH_NAME=$(echo $PR_DATA | jq -r .head.ref) echo "Branch Name: $BRANCH_NAME" echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV - - name: Checkout Branch + - name: Checkout Repository at Branch uses: actions/checkout@v2 with: ref: ${{ steps.get_branch.outputs.branch_name }} @@ -59,11 +45,25 @@ jobs: - name: Set up Docker Environment run: docker build -t code-dot-org-testing-docker-image -f ./code-dot-org/docker/dockerfiles/Dockerfile ./code-dot-org - - name: Run ls Unit Tests without working dir + - name: Aggressive Debugging of Docker Container run: | - docker run \ - code-dot-org-testing-docker-image \ - /bin/bash -c "ls -la ." + echo "Debugging / Directory" + docker run code-dot-org-testing-docker-image /bin/bash -c "ls -la /" + + echo "Debugging /home Directory" + docker run code-dot-org-testing-docker-image /bin/bash -c "ls -la /home" + + echo "Debugging /circleci Directory" + docker run code-dot-org-testing-docker-image /bin/bash -c "ls -la /circleci" + + echo "Debugging deeper into /circleci" + docker run code-dot-org-testing-docker-image /bin/bash -c "ls -laR /circleci" + + echo "Searching for ui_tests.sh in /circleci" + docker run code-dot-org-testing-docker-image /bin/bash -c "find /circleci -type f -name 'ui_tests.sh' 2>/dev/null" + + echo "Displaying Environment Variables" + docker run code-dot-org-testing-docker-image /bin/bash -c "printenv" - name: Update Cache uses: actions/cache@v2 diff --git a/apps/src/lib/levelbuilder/CourseVersionPublishingEditor.jsx b/apps/src/lib/levelbuilder/CourseVersionPublishingEditor.jsx index 40f8d4c6caf22..7633d72773c49 100644 --- a/apps/src/lib/levelbuilder/CourseVersionPublishingEditor.jsx +++ b/apps/src/lib/levelbuilder/CourseVersionPublishingEditor.jsx @@ -4,6 +4,7 @@ import HelpTip from '@cdo/apps/lib/ui/HelpTip'; import color from '@cdo/apps/util/color'; import {PublishedState} from '@cdo/apps/generated/curriculum/sharedCourseConstants'; import Button from '../../templates/Button'; +import Link from '@cdo/apps/componentLibrary/link/Link'; export default class CourseVersionPublishingEditor extends Component { static propTypes = { @@ -218,68 +219,19 @@ export default class CourseVersionPublishingEditor extends Component { ))} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Publish StateOverview
In-Development - Only levelbuilder can see this course. Used for creating new - content you don't want anyone to access. -
Pilot - A limited set of teachers who are in a pilot experiment can - see and assign the course. -
Beta - Anyone who has the link can view the course and make - progress on it. It is not assignable by teachers yet. -
Preview - The course is now a choice in the dropdown that is - assignable. -
Stable - A course that is not changing. If it is the most recent - course in your language it will be the recommended course. -
Sunsetting - A course that is in the process of being deprecated. -
Deprecated - A course that has been deprecated.
-
- For Deeper Learning Courses, deprecation prevents Peer - Reviews conducted as part of this unit from being displayed - in the admin-only Peer Review Dashboard. -
+ Making a change to this setting updates who can see and assign this + curriculum. It also impacts what kinds of edits can be made, some of + which can not be reversed without engineering assistance. +
+
+ Click "More info" for more information.
+ + More info + {this.props.publishedState === PublishedState.pilot && (