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

feanil/move old stuff #457

Merged
merged 6 commits into from
Mar 9, 2023
Merged

feanil/move old stuff #457

merged 6 commits into from
Mar 9, 2023

Conversation

feanil
Copy link
Contributor

@feanil feanil commented Mar 6, 2023

  • docs: Add a section for obsolete and replaced OEPs.
  • feat: Add a way to do redirects.
  • chore: Complie requirements to add sphinxext-rediraffe.
  • feat: Add the ability redirect to moved files.
  • docs: Move less relevant OEPs to an archived section.
  • docs: Add redirects for all the files that have been moved.

@feanil feanil force-pushed the feanil/move_old_stuff branch 2 times, most recently from d32aa88 to e66929e Compare March 6, 2023 17:44
Feanil Patel added 3 commits March 6, 2023 13:01
sphinxext-rediraffe will let us generate redirects based on which files
moved in our git history.  This is usefule as we re-organize OEPs and
mark them as obsoleted or replaced.
Ran the following commands to just add rediraffe without pulling in
other things:

CUSTOM_COMPILE_COMMAND="make upgrade" pip-compile --rebuild -P spinxext-rediraffe -o requirements/base.txt requirements/base.in
CUSTOM_COMPILE_COMMAND="make upgrade" pip-compile --rebuild -P spinxext-rediraffe -o requirements/dev.txt requirements/dev.in
* Add the conf to generate redirects based on changes between a branch
  and master.

* Add a CI check so we don't miss files that got moved around.
@feanil feanil force-pushed the feanil/move_old_stuff branch from d83f0a6 to d38d239 Compare March 6, 2023 18:02
@feanil feanil requested a review from bmtcril March 6, 2023 18:04
Copy link

@bmtcril bmtcril left a comment

Choose a reason for hiding this comment

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

Just one question, otherwise LGTM!


update_redirects:
# If files got moved there should be a redirect in redirects.txt
sphinx-build -b rediraffewritediff oeps $(BUILDDIR)
Copy link

Choose a reason for hiding this comment

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

Are both of these really the same command? It just returns a different status code when it finds new redirects?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The check one does not write anything but the update_redirects actually writes the changes if it has high enough confidence in them.

.. attention::

This decision was a one time decision and is not relevant to the current
active project.
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a related task in openedx/wg-frontend#131 for doing amnesty on eslint warnings which is actively being worked on, but I'm not sure if it's worth keeping the OEP open for that.

.. attention::

This proposal is deferred as there is no current plans to actively work on
implementing this work.
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually this is a pretty high Arch-BOM priority captured in edx/edx-arch-experiments#138 , we're hoping to start work on it in the next 1-3 months. It also surfaced in https://openedx.atlassian.net/wiki/spaces/AC/pages/3615850497/Development+Environment+Vision#Continue-OEP-37-(Dev-Data)-implementation-%26-refinement as one of the top 3 next steps to improving our dev environments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jmbowman would you be comfortable with moving this back out of the archives when it's being actively worked on or would you prefer it not move?

Copy link
Contributor

Choose a reason for hiding this comment

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

My preference would be to not move it because:

  1. It creates extra work to move it back later
  2. The optics of launching a nontrivial implementation project for an archived OEP aren't great
  3. Seriously, this is one of the team's top priorities for Q2

But let me know if that poses any problems I'm not aware of.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, I'll remove that move from this PR.

@feanil feanil requested review from jmbowman and bmtcril March 8, 2023 14:51
Copy link

@bmtcril bmtcril left a comment

Choose a reason for hiding this comment

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

🧹

Feanil Patel added 2 commits March 9, 2023 11:29
Add a small info box to give people context for why the OEPs are in this
section.
@feanil feanil force-pushed the feanil/move_old_stuff branch from 0b123db to 5388822 Compare March 9, 2023 16:29
@feanil feanil merged commit b66fd08 into master Mar 9, 2023
@feanil feanil deleted the feanil/move_old_stuff branch March 9, 2023 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants