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

2024 refactor part 3/3: cleanup #801

Merged
merged 16 commits into from
Feb 6, 2024
Merged

2024 refactor part 3/3: cleanup #801

merged 16 commits into from
Feb 6, 2024

Conversation

hellais
Copy link
Member

@hellais hellais commented Feb 2, 2024

Part 3/3

As part of this PR, everything that is dead code, is removed from the source tree.

This includes:

  • af/ -> this was the old airflow postgresql related code
  • old_backend/ -> this was the super old pre-2016 twisted based backend
  • docs/ -> contained documentation about the ~2016 data pipeline
  • Readme.md -> Still talks about some super old stuff
  • rate_limit_quotas.py -> duplicate of file inside ooniapi/rate_limit_quotas.py
  • ooniapi/scripts -> these scripts expect a postgresql database, which doesn't exist anymore
  • api/refresh_deps -> non-existent files are referenced in it
  • markdown/* -> these docs are not used anywhere and are superseeded by the swagger based docs
  • re-add file lost in previous refactor merge: a3c2ffd#diff-132fae567446b29b2389ea8de10ab4eb194884af9a2a428f04c3f629867a1d96

Superseeds:
#797
#798
#791

@hellais hellais changed the title 2024 refactor cleanup 2024 refactor part 3/3: cleanup Feb 2, 2024
@hellais hellais force-pushed the 2024-refactor_cleanup branch 2 times, most recently from 872ec30 to db91e6d Compare February 2, 2024 17:04
@hellais hellais mentioned this pull request Feb 2, 2024
Copy link
Contributor

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

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

I am mostly okay with all these changes; I asked questions when unsure!

README.md Outdated Show resolved Hide resolved
analysis/analysis/metrics.py Outdated Show resolved Hide resolved
app.extensions["limiter"] = self

def get_lowest_daily_quotas_summary(self, n=20) -> List[Tuple[int, float]]:
return self._limiter.get_lowest_daily_quotas_summary(n)
Copy link
Contributor

Choose a reason for hiding this comment

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

This file was a duplicate

Copy link
Member Author

Choose a reason for hiding this comment

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

yes

api/scripts/init_db.sh Show resolved Hide resolved
@@ -1,2 +0,0 @@
lz4cat meta-closure.sql.lz4 | psql -U postgres -h localhost -p 5433 measurements -f sample-dump.sql

Copy link
Contributor

Choose a reason for hiding this comment

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

What does refresh this script?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand the question.

Copy link
Contributor

Choose a reason for hiding this comment

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

Neither do I, it was phrased incorrectly. I mean to ask:

What does replace this script?

Copy link
Member Author

Choose a reason for hiding this comment

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

No idea, probably nothing.

hellais and others added 3 commits February 5, 2024 20:00
Co-authored-by: Simone Basso <bassosimone@gmail.com>
…2024-refactor_cleanup

* '2024-refactor_cleanup' of github.com:ooni/backend:
  Update README.md
@hellais hellais merged commit 969ae93 into master Feb 6, 2024
3 checks passed
@hellais hellais deleted the 2024-refactor_cleanup branch February 6, 2024 09:08
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.

2 participants