Releases: IHosseini083/Shortify
Releases · IHosseini083/Shortify
v0.1.10
[0.1.10] (2023-05-03)
Added
- Dockerized project.
- Add new schema
CommonHTTPErrorfor common HTTP error response models in OpenAPI spec. - Use
UTCtime instructlog.processors.TimeStamperprocessor. - Add
UVICORN_HOSTandUVICORN_PORTas required environment variables to be explicitly
set by user.
Removed
- Removed flake8 and autopep8 pre-commit hooks.
- Removed
charliermarsh.ruffextension from VSCode's recommended extensions. - Removed
scripts/testscript. - Removed
LOG_FILE_PATHenvironment variable and support for log files
Chnaged
- Removed
@app.on_event("...")functions and uselifespanfeature 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_LEVELenvironment variable instead of pydantic validator. - Use
structlog.stdlib.BoundLoggerbound logger aswrapper_classfor all structlog
loggers that we get from callingstructlog.get_logger().
v0.1.7
Added
- Add poetry pre-commit hooks.
Changed
Fixed
- Fix
scripts/installscript to install dependencies whenpoetry.lockis found. - Use
typing.Sequenceinstead 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 Practicesto 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 Usagesection. - Update dependencies.
- Add
Stacksection 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_idlogging processor. - Add new field
MONGODB_DB_NAMEin app settings for database name. - Add sample .env file.
Changed
- Refactor logging functionality.
- Set default value for
MONGODB_URIfield 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
RequestValidationErrorexception handler.
Changed
- Increase
editor.rulersin 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.lockfile 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_keyfield inUserInDBBaseschema.
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
HTTPExceptionwith status code403is raised when the givenapi_keyquery 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_atfield toShortUrlschema.
Changed
- Convert all api views except for the
/auth/endpoints to class-based views. - Update
get_by_username()method ofUsermodel to comply with the constraints of the
usernamefield on user creation (handled by theConstrainedUsernamefield type).
Removed
- Remove redundant
get_by_origin()method ofShortUrlmodel.
v0.0.9
Added
- Add new field to
ShortUrlmodel for last visit date and time. - Add new class method to
ShortUrlmodel for updating view count and last visit. - Implement redirection to long URL when short URL is accessed via its identifier.
Changed
- Bump
pyupgradepre-commit hook to v2.38.0, #10. - Bump
beaniefrom 1.11.9 to 1.11.11.