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

Add fixture data for upcoming features #16

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/data/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ruff: noqa: F401
from .upcoming import UPCOMING_DATA
240 changes: 240 additions & 0 deletions app/data/upcoming.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
UPCOMING_DATA = [
{
"name": "OpenJDK 11 retirement",
"type": "Deprecation",
"release": "9.x",
"date": "Oct 2024",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": ".NET 6 retirement",
"type": "Deprecation",
"release": "9.x",
"date": "Nov 2024",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "gcc-toolset 12 retirement",
"type": "Deprecation",
"release": "9.x",
"date": "Nov 2024",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "Ruby 3.1 retirement",
"type": "Deprecation",
"release": "9.x",
"date": "Mar 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "Node.js 18 retirement",
"type": "Deprecation",
"release": "9.x",
"date": "Apr 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "6.11 kernel version",
"type": "Change",
"release": "10.0",
"date": "May 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "gcc-toolset 14",
"type": "addition",
"release": "9.5",
"date": "May 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "gcc-toolset 14",
"type": "addition",
"release": "10.0",
"date": "May 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "MariaDB 11.0",
"type": "addition",
"release": "9.5",
"date": "May 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "MariaDB 11.0",
"type": "addition",
"release": "10.0",
"date": "May 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "PHP 8.1 retirement",
"type": "Deprecation",
"release": "9.x",
"date": "May 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "PHP 8.3",
"type": "addition",
"release": "9.5",
"date": "May 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "PHP 8.3",
"type": "addition",
"release": "10.0",
"date": "May 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "Python 3.12",
"type": "addition",
"release": "9.5",
"date": "May 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "Python 3.12",
"type": "addition",
"release": "10.0",
"date": "May 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "Ruby 3.4",
"type": "addition",
"release": "9.5",
"date": "May 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
{
"name": "Ruby 3.5",
"type": "addition",
"release": "10.0",
"date": "June 2025",
"details": {
"detailFormat": 0,
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!",
"potentiallyAffectedSystems": 5,
"trainingTicket": "No training ticket",
"dateAdded": "October 29, 2024",
"lastModified": "October 29, 2024",
},
},
]
2 changes: 1 addition & 1 deletion app/tests/upcoming/test_get_mock_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@


def test_upcoming_mock_endpoint():
response = client.get("/api/digital-roadmap/v1/upcoming-changes/get-future-data")
response = client.get("/api/digital-roadmap/v1/upcoming-changes")
assert response.status_code == 200
18 changes: 6 additions & 12 deletions app/v1/upcoming/endpoints.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
from fastapi import APIRouter

from app.data import UPCOMING_DATA

v1_router = APIRouter()


@v1_router.get("/get-future-data")
async def get_relevant():
# TODO: This is a dummy function that returns a list of changes that are planned for the future.
# In a real application, this data would be fetched from a database or some other source.
return {
"changes": [
{"type": "feature", "description": "New feature 1", "release": "9.0"},
{"type": "retirement", "description": "Retiring feature 2", "release": "10.0"},
{"type": "bugfix", "description": "Fixing bug 3", "release": "8.6"},
{"type": "deprecation", "description": "Deprecating feature 4", "release": "9.0"},
]
}
@v1_router.get("")
async def get_upcoming():
# TODO: Replace fixture data with data from database
return UPCOMING_DATA
Loading