-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(get-ahblines): Get ahblines from sqlite instead from json files #416
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
Merged
hf-krechan
merged 5 commits into
refactor-format-version-endpoint
from
take-ahblines-from-sqlite
Jan 29, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f7fe517
add ahbline to entities
hf-krechan d3a9e18
get ahblines from sqlite
hf-krechan 0ab5d67
bring back excel download
hf-krechan e835315
Add comment where the column comes from
hf-krechan 4698ec8
remove maus_version from code base
hf-krechan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// The here defined columns come from the ahbline table in the database. | ||
// The table is created by the ahbline.sql file in the database/sql folder. | ||
// Which you can find here: https://github.com/Hochfrequenz/ahb-mig-backend/releases/tag/v0.0.1 | ||
|
||
import { Entity, Column, PrimaryColumn, Index } from 'typeorm'; | ||
|
||
@Entity({ name: 'ahbline', synchronize: false }) | ||
export class AhbLine { | ||
@PrimaryColumn({ type: 'varchar', length: 32 }) | ||
id!: string; | ||
|
||
@Column({ type: 'integer' }) | ||
@Index('ix_ahbline_position_inside_ahb') | ||
position_inside_ahb!: number; | ||
|
||
@Column({ type: 'varchar', nullable: true }) | ||
segment_group_key?: string; | ||
|
||
@Column({ type: 'varchar', nullable: true }) | ||
segment_code?: string; | ||
|
||
@Column({ type: 'varchar', nullable: true }) | ||
data_element?: string; | ||
|
||
@Column({ type: 'varchar', nullable: true }) | ||
segment_id?: string; | ||
|
||
@Column({ type: 'varchar', nullable: true }) | ||
value_pool_entry?: string; | ||
|
||
@Column({ type: 'varchar', nullable: true }) | ||
name?: string; | ||
|
||
@Column({ type: 'varchar', nullable: true }) | ||
ahb_expression?: string; | ||
|
||
@Column({ type: 'varchar', nullable: true }) | ||
conditions?: string; | ||
|
||
@Column({ type: 'varchar', nullable: true }) | ||
section_name?: string; | ||
|
||
@Column({ type: 'integer', nullable: true }) | ||
index?: number; | ||
|
||
@Column({ type: 'varchar', length: 32, nullable: true }) | ||
ahb_id?: string; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
das ist aber langfristig schwer zu maintainen, oder? vermute mal, das wird in einem folge-pr geändert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wollte das feature mit den excel-files noch weiter anbieten.
Wo siehst du Bedenken?