Commit graph

58 commits

Author SHA1 Message Date
7df786100b Update requirements-wsl.txt 2025-02-24 10:08:39 +00:00
a28ab0e7a0 Add requirements-wsl.txt for WSL users
- This file contains the specific dependencies required for running the application in Windows Subsystem for Linux (WSL).
- Adding this file ensures that developers working on WSL can easily set up their environment and install all necessary packages.
- This improves consistency across development environments and reduces setup time for new contributors or team members.
2025-02-24 10:04:24 +00:00
77ebb373e5 let development be insecure cookies
modified:   development.ini
	modified:   remarkbox/views/authentication.py
2025-02-06 17:41:24 -05:00
64593125b7 Update .gitlab-ci.yml file 2025-01-10 12:18:34 +00:00
41cb325e94 Fix gitlab pipeline per @FireIsGood
modified:   .gitlab-ci.yml
2025-01-09 13:25:46 -05:00
fd19599893 contribute & formatter suggestion & public domain.
modified:   README.rst
2025-01-09 12:50:20 -05:00
84fabcd1c0 Merge branch 'development-smtp-solution' into 'main'
when in development log SMTP errors & email

Closes #3

See merge request engineering/remarkbox/remarkbox!4
2025-01-09 14:08:19 +00:00
17ce4b5029 when in development log SMTP errors & email
modified:   Makefile
	modified:   README.rst
	modified:   remarkbox/__init__.py
	modified:   remarkbox/lib/mail.py
2025-01-09 09:02:00 -05:00
4863c4f988 Merge branch 'css-related-changes' into 'main'
feat: basic style overhaul

See merge request engineering/remarkbox/remarkbox!3
2025-01-09 13:13:57 +00:00
f5c017c081 feat: basic style overhaul 2025-01-09 13:13:57 +00:00
3114737c40 Merge branch 'main' into 'main'
Fix README spelling/formatting

See merge request engineering/remarkbox/remarkbox!2
2025-01-09 13:09:36 +00:00
50a633e2be
fix spelling 2024-12-22 05:16:12 -08:00
fa80a2f2d3
fix inconsistent Description List markup 2024-12-22 05:15:52 -08:00
5e181c9081 fix back button when commenting logged out
modified:   remarkbox/__init__.py
2024-10-13 07:12:38 -04:00
73faf89fed Optimize target verification by reducing unnecessary updates
- Modified verify_target method to skip updating the target if the NamespaceRequest is already verified and the last verification was within the past day.
- This change reduces unnecessary modifications to the target, improving efficiency and maintaining data integrity.
- Added logging to indicate when target verification is skipped due to verification status.

hopefully this:

* lowers cpu usage, although it can't hurt.
* reduces database churn and locking.

	modified:   remarkbox/models/namespace_request.py
2024-10-06 19:35:29 -04:00
41ab711fe3 Optimize scraping logic by skipping verified NamespaceRequests
- Added logic to skip scraping if a NamespaceRequest is already verified and the last scrape was within the past day.
- This change reduces unnecessary scraping, improving efficiency and reducing load on target servers.
- Added logging to indicate when a scrape is skipped due to verification status.

	modified:   remarkbox/models/namespace_request.py
2024-10-06 18:41:49 -04:00
c5453d632d Enhance scrape_target method to handle HTTP redirects
- Implemented logic to follow HTTP redirects up to a specified maximum depth (max_redirects) in the scrape_target method.
- Added logging to track each redirect step, providing better visibility into the redirect chain.
- Set a limit on the number of redirects to prevent infinite loops in case of circular redirects.
- This change ensures that the UUID is checked on the final destination page, improving the accuracy of the scraping process.

	modified:   remarkbox/models/namespace_request.py
2024-10-06 18:36:20 -04:00
83adeb0a02 Integrate miniuri library for URI parsing in NamespaceRequest
- Replaced custom URI parsing logic with the miniuri library to simplify and standardize URI handling.
- Updated the _get_domain_from_target method to use miniuri for extracting the hostname from target URLs.
- This change enhances code readability and leverages miniuri's robust URI parsing capabilities.

	modified:   remarkbox/models/namespace_request.py
2024-10-06 16:26:36 -04:00
eb93c955e5 Implement non-blocking lock to prevent concurrent scrapes for NamespaceRequest
- Added a threading lock to the NamespaceRequest class to ensure only one scrape operation is performed at a time for a given request.
- Used non-blocking lock acquisition to allow early exit if a scrape is already in progress, reducing redundant requests.
- Ensured lock release in a finally block to maintain proper lock management.
- This change aims to mitigate potential DoS issues by preventing multiple concurrent scrapes and reducing the risk of rate-limiting by target servers.

	modified:   remarkbox/models/namespace_request.py
2024-10-06 10:01:59 -04:00
186e74e69e new file: remarkbox/scripts/alembic/versions/14a6a35940c7_new_field_for_namespace_request_cache.py 2024-10-06 09:17:42 -04:00
0b0768fea8 Address DOS when scraping busy namespaces for owner requests
modified:   remarkbox/models/namespace_request.py
2024-10-06 09:10:57 -04:00
e4429951db Always link to the slug even if it's empty string.
modified:   remarkbox/models/node.py
	modified:   remarkbox/templates/home.j2
2024-02-05 19:23:45 -05:00
da39486af2 Update file development.ini 2023-10-01 18:35:56 +00:00
043df68756 modified: remarkbox/static/css/common.css 2023-08-19 11:27:02 -04:00
4e901dfcf5 remove broken stripe test
modified:   remarkbox/tests/test_views.py
2023-08-19 11:14:45 -04:00
7d46b0acb7 try to pin to old version of stripe
modified:   requirements.txt
2023-08-19 11:06:28 -04:00
857e66a645 modified: static/css/common.css 2023-08-19 10:54:35 -04:00
318b280dd2 Update remarkbox/templates/snippets/snippets.j2 2023-04-27 14:37:57 +00:00
47f0a907d1 Typo
modified:   views/authentication.py
2023-04-26 14:02:30 -04:00
7a3d8aed0f allow users with + in email to authenticate
we need to urlencode the email address

	modified:   remarkbox/views/authentication.py
2023-04-26 13:46:55 -04:00
7dd16fac1b Update remarkbox/models/user.py 2023-04-26 16:04:39 +00:00
313f9175c5 sunset miscutils
modified:   remarkbox/__init__.py
	modified:   remarkbox/lib/mail.py
	modified:   remarkbox/lib/render.py
	new file:   remarkbox/lib/sanitize_html.py
	modified:   remarkbox/models/user.py
	modified:   remarkbox/scripts/json_import.py
	modified:   requirements.py3.txt
	modified:   requirements.txt
2022-08-01 11:14:10 -04:00
d7f8039778 switch to gitlab served themes.
modified:   requirements.py3.txt
2022-08-01 10:34:27 -04:00
232982cfe0 stop logging object for no reason.
modified:   __init__.py
2022-07-23 12:23:19 -04:00
f35da5f34d < back to thread button url stored in session.
modified:   __init__.py
	modified:   templates/user-settings.j2
2022-07-23 12:06:41 -04:00
501fb563d2 Update remarkbox/scripts/init_db.py 2022-07-02 22:18:12 +00:00
feb32bb2e2 Child pipeline fixes race condition.
new file:   .gitlab-ci.deploy.yml
	modified:   .gitlab-ci.yml
2022-06-21 14:34:23 -04:00
2925230de2 user interface fix
modified:   remarkbox/templates/show-node.j2
2022-06-20 21:24:53 -04:00
8baddb24ff user experience fixes
modified:   remarkbox/views/authentication.py
2022-06-20 14:12:58 -04:00
9cff2013ae fix authentication tests
modified:   remarkbox/tests/test_views.py
2022-06-20 13:11:48 -04:00
67ec8333d2 User experience updates for authentication.
modified:   remarkbox/routes.py
	modified:   remarkbox/templates/verification-challenge.j2
	modified:   remarkbox/views/authentication.py
2022-06-20 13:03:36 -04:00
9561b35942 UI adjustments.
modified:   remarkbox/templates/namespace-settings.j2
	modified:   remarkbox/templates/show-node.j2
	deleted:    remarkbox/templates/show-node2.j2
2022-06-20 11:09:52 -04:00
dc92297963 password attempts field.
new file:   remarkbox/scripts/alembic/versions/8f76e372a953_password_attempts_field.py
2022-06-20 10:33:53 -04:00
96bea15aa4 fix ui
modified:   join-or-log-in.j2
2022-06-20 09:38:46 -04:00
2c7ef76e8b put bak the join or log in button.
modified:   templates/show-node.j2
2022-06-20 09:36:20 -04:00
cf89a62a66 Merge branch 'rb-verification-challenge-refactor' into 'main'
Verification challenge code refactor

See merge request engineering/remarkbox/remarkbox!1
2022-06-19 23:06:30 +00:00
d93e9106d4 Verification challenge code refactor
it works good enough,

future commits will do some refactors to make the success
screen more user friendly.

	modified:   Makefile
	modified:   README.rst
	modified:   index.html
	modified:   remarkbox/lib/mail.py
	modified:   remarkbox/lib/mail_messages.py
	modified:   remarkbox/models/meta.py
	modified:   remarkbox/models/user.py
	modified:   remarkbox/routes.py
	modified:   remarkbox/templates/join-or-log-in.j2
	modified:   remarkbox/templates/show-node.j2
	new file:   remarkbox/templates/verification-challenge.j2
	modified:   remarkbox/tests/test_models.py
	modified:   remarkbox/tests/test_views.py
	modified:   remarkbox/views/__init__.py
	modified:   remarkbox/views/authentication.py
2022-06-19 19:01:31 -04:00
56f78e287e Update .gitlab-ci.yml file 2022-06-07 12:36:40 +00:00
7860ab76fa Update .gitlab-ci.yml file 2022-06-07 12:16:21 +00:00
13e6497a65 Update .gitlab-ci.yml file 2022-06-07 12:15:53 +00:00