Skip to content

Commit

Permalink
Merge pull request #8778 from alphagov/remove-wworg-links
Browse files Browse the repository at this point in the history
Remove non-edition worldwide organisation links
  • Loading branch information
brucebolt authored Jan 31, 2024
2 parents 1a222d9 + 7b53bd4 commit 244bdcc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,7 @@ def document_type
end

def links
{
home_page_offices: [],
main_office: [],
office_staff: [],
primary_role_person: [],
roles: [],
secondary_role_person: [],
sponsoring_organisations: [],
world_locations: [],
}
{}
end

private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,7 @@ def edition_links
end

def links
{
corporate_information_pages: [],
main_office: [],
home_page_offices: [],
primary_role_person: [],
secondary_role_person: [],
office_staff: [],
sponsoring_organisations: [],
world_locations: [],
roles: [],
}
{}
end

def description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,7 @@ def present(...)
update_type: "major",
}

expected_links = {
main_office: [],
home_page_offices: [],
primary_role_person: [],
secondary_role_person: [],
office_staff: [],
sponsoring_organisations: [],
world_locations: [],
roles: [],
}
expected_links = {}

presented_item = present(worldwide_org)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,7 @@ def present(...)
update_type: "major",
}

expected_links = {
corporate_information_pages: [],
main_office: [],
home_page_offices: [],
primary_role_person: [],
secondary_role_person: [],
office_staff: [],
sponsoring_organisations: [],
world_locations: [],
roles: [],
}
expected_links = {}

presented_item = present(worldwide_org)

Expand Down

0 comments on commit 244bdcc

Please sign in to comment.