Releases: IHosseini083/Shortify
Releases · IHosseini083/Shortify
v0.1.10
[0.1.10] (2023-05-03)
Added
- Dockerized project.
- Add new schema
CommonHTTPError
for common HTTP error response models in OpenAPI spec. - Use
UTC
time instructlog.processors.TimeStamper
processor. - Add
UVICORN_HOST
andUVICORN_PORT
as required environment variables to be explicitly
set by user.
Removed
- Removed flake8 and autopep8 pre-commit hooks.
- Removed
charliermarsh.ruff
extension from VSCode's recommended extensions. - Removed
scripts/test
script. - Removed
LOG_FILE_PATH
environment variable and support for log files
Chnaged
- Removed
@app.on_event("...")
functions and uselifespan
feature instead:
from contextlib import asynccontextmanager
from fastapi import FastAPI
@asynccontextmanager
async def lifespan(application: FastAPI): # noqa
# On startup
yield
# On shutdown
app = FastAPI(
...,
lifespan=lifespan,
)
- Set pre-commit ci autoupdate schedule to
monthly
. - Clean up README file and add instructions for using
Docker
. - Use enum for validation of
LOG_LEVEL
environment variable instead of pydantic validator. - Use
structlog.stdlib.BoundLogger
bound logger aswrapper_class
for all structlog
loggers that we get from callingstructlog.get_logger()
.
v0.1.7
Added
- Add poetry pre-commit hooks.
Changed
Fixed
- Fix
scripts/install
script to install dependencies whenpoetry.lock
is found. - Use
typing.Sequence
instead ofcollections.abc.Sequence
.
Full Changelog: v0.1.6...v0.1.7
v0.1.6
Added
- Add support for MongoDB DNS Seed List connection schema (
mongodb+srv
). - Add new section
Project Structure, Modifications and Best Practices
to README.
Changed
- Reformat TODO file.
- pre-commit autoupdate, #16.
- Bump beanie from 1.13.0 to 1.13.1, #15.
- Bump fastapi from 0.85.2 to 0.86.0, #18.
- Correct path to docs in
Documentation and Usage
section. - Update dependencies.
- Add
Stack
section to README.
Full Changelog: v0.1.5...v0.1.6
v0.1.5
Added
- Add correlation middleware.
- Add application logs to .gitignore.
- Add
add_correlation_id
logging processor. - Add new field
MONGODB_DB_NAME
in app settings for database name. - Add sample .env file.
Changed
- Refactor logging functionality.
- Set default value for
MONGODB_URI
field in app settings. - Complete all README file sections.
Full Changelog: v0.1.4...v0.1.5
v0.1.4
Added
- Add base structured logging system via
structlog
. - Add custom
RequestValidationError
exception handler.
Changed
- Increase
editor.rulers
in VSCode settings to 88. - Bump fastapi from 0.85.0 to 0.85.1.
Full Changelog: v0.1.3...v0.1.4
v0.1.3
Added
- Include
poetry.lock
file in repository. - Add EditorConfig configurations.
- Create pagination utility function.
- Add VSCode settings for linting, formatting and debugging Python code.
Removed
- Remove default value of None for
api_key
field inUserInDBBase
schema.
Full Changelog: v0.1.2...v0.1.3
v0.1.2
Added
- Add community code of conduct.
Changed
- Bump black from 22.6.0 to 22.10.0.
- Bump beanie from 1.11.11 to 1.12.0.
- Use new poetry dependency grouping syntax for dev dependencies in pyproject.toml.
Fixed
- Now a
HTTPException
with status code403
is raised when the givenapi_key
query parameter is invalid.
Full Changelog: v0.1.1...v0.1.2
v0.1.1
v0.1.0
Added
- Add utility to create class-based api views.
- Add
last_visit_at
field toShortUrl
schema.
Changed
- Convert all api views except for the
/auth/
endpoints to class-based views. - Update
get_by_username()
method ofUser
model to comply with the constraints of the
username
field on user creation (handled by theConstrainedUsername
field type).
Removed
- Remove redundant
get_by_origin()
method ofShortUrl
model.
v0.0.9
Added
- Add new field to
ShortUrl
model for last visit date and time. - Add new class method to
ShortUrl
model for updating view count and last visit. - Implement redirection to long URL when short URL is accessed via its identifier.
Changed
- Bump
pyupgrade
pre-commit hook to v2.38.0, #10. - Bump
beanie
from 1.11.9 to 1.11.11.