From 1f89d80c473b63bd1d7bf017d41f25358fa9cbd8 Mon Sep 17 00:00:00 2001 From: Sergey Peshkov Date: Fri, 12 Jun 2020 16:49:22 +0300 Subject: [PATCH] feat(general): new core refactor (#271) New core refactor BREAKING CHANGE: new core refactor --- config/index.js | 8 +- lib/applications.js | 8 +- lib/helpers.js | 2 +- lib/plenaries.js | 2 +- test/api/plenaries-export-stats.test.js | 4 +- .../oms-core-approve-permissions-full.json | 2677 +---------------- test/assets/oms-core-bodies.json | 4 +- test/assets/oms-core-body-members.json | 21 +- test/assets/oms-core-members.json | 22 +- test/assets/oms-core-permissions-full.json | 17 - test/assets/oms-core-valid.json | 28 +- 11 files changed, 63 insertions(+), 2730 deletions(-) diff --git a/config/index.js b/config/index.js index d4c10dce..39c1b32c 100644 --- a/config/index.js +++ b/config/index.js @@ -11,11 +11,11 @@ const config = { database: process.env.DB_DATABASE || 'statutory', }, core: { - url: 'http://oms-core-elixir', - port: 4000, + url: 'http://oms-core-js', + port: 8084, user: { - login: process.env.CORE_LOGIN || 'admin@aegee.org', - password: process.env.CORE_PASSWORD || '5ecr3t' + login: process.env.CORE_LOGIN || 'admin@example.com', + password: process.env.CORE_PASSWORD || '5ecr3t5ecr3t' } }, mailer: { diff --git a/lib/applications.js b/lib/applications.js index 3bb165e5..53b6aab4 100644 --- a/lib/applications.js +++ b/lib/applications.js @@ -255,7 +255,7 @@ exports.updateApplication = async (req, res) => { req.body.first_name = user.first_name; req.body.last_name = user.last_name; req.body.gender = user.gender; - req.body.email = user.user.email; + req.body.email = user.email; req.body.date_of_birth = user.date_of_birth; if (req.body.body_id) { // Shouldn't crash, if the person is not a member of a body, @@ -296,7 +296,7 @@ exports.updateApplication = async (req, res) => { if (boardMembers.length > 0) { await mailer.sendMail({ - to: boardMembers.map(member => member.member.user.email), + to: boardMembers.map(member => member.user.email), subject: `One of your body members changed the application to ${req.event.name}`, template: 'statutory_board_edited.html', parameters: { @@ -612,7 +612,7 @@ exports.postApplication = async (req, res) => { req.body.first_name = req.user.first_name; req.body.last_name = req.user.last_name; req.body.gender = req.user.gender; - req.body.email = req.user.user.email; + req.body.email = req.user.email; req.body.body_name = req.user.bodies.find(b => req.body.body_id === b.id).name; req.body.date_of_birth = req.user.date_of_birth; @@ -643,7 +643,7 @@ exports.postApplication = async (req, res) => { if (boardMembers.length > 0) { await mailer.sendMail({ - to: boardMembers.map(member => member.member.user.email), + to: boardMembers.map(member => member.user.email), subject: `One of your body members has applied to ${req.event.name}`, template: 'statutory_board_applied.html', parameters: { diff --git a/lib/helpers.js b/lib/helpers.js index e0f5ae8c..57ca96e8 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -270,7 +270,7 @@ function getBodiesListFromPermissions(result) { return []; } - return result.reduce((acc, val) => acc.concat(val), []) + return result .filter(elt => elt.body_id) .map(elt => elt.body_id) .filter((elt, index, array) => array.indexOf(elt) === index); diff --git a/lib/plenaries.js b/lib/plenaries.js index 7a1c2b97..1b08017e 100644 --- a/lib/plenaries.js +++ b/lib/plenaries.js @@ -224,7 +224,7 @@ exports.listPlenariesStats = async (req, res) => { return [ body.id, - body.legacy_key, + body.code, body.name, body.type, applicationsForBody.length, diff --git a/test/api/plenaries-export-stats.test.js b/test/api/plenaries-export-stats.test.js index d293f0a6..7e8a5a8c 100644 --- a/test/api/plenaries-export-stats.test.js +++ b/test/api/plenaries-export-stats.test.js @@ -482,7 +482,7 @@ describe('Plenaries exports', () => { expect(row.length).toEqual(9); // body ID, code, name, type, delegates count, avg%, 3 delegates % expect(row[0]).toEqual(regularUser.bodies[0].id); - expect(row[1]).toEqual(regularUser.bodies[0].legacy_key); + expect(row[1]).toEqual(regularUser.bodies[0].code); expect(row[2]).toEqual(regularUser.bodies[0].name); expect(row[3]).toEqual(regularUser.bodies[0].type); expect(row[4]).toEqual(3); // 3 delegates @@ -542,7 +542,7 @@ describe('Plenaries exports', () => { expect(row.length).toEqual(6); // body ID, code, name, type, delegates count, avg%, 0 delegates % expect(row[0]).toEqual(regularUser.bodies[0].id); - expect(row[1]).toEqual(regularUser.bodies[0].legacy_key); + expect(row[1]).toEqual(regularUser.bodies[0].code); expect(row[2]).toEqual(regularUser.bodies[0].name); expect(row[3]).toEqual(regularUser.bodies[0].type); expect(row[4]).toEqual(0); // 3 delegates diff --git a/test/assets/oms-core-approve-permissions-full.json b/test/assets/oms-core-approve-permissions-full.json index 29c4874e..e201afe0 100644 --- a/test/assets/oms-core-approve-permissions-full.json +++ b/test/assets/oms-core-approve-permissions-full.json @@ -1,2677 +1,30 @@ { "success": true, "data": [ - [ - { + { + "seo_url": 134, + "permissions": [], + "parent_circle_id": 2, + "parent_circle": { "seo_url": 2, - "permissions": [ - { - "scope": "local", - "object": "body", - "id": 34, - "filters": [], - "description": "Delete membership status from members in the body that you got this permission from.", - "combined": "local:delete_member:body", - "circles": null, - "always_assigned": false, - "action": "delete_member" - }, - { - "scope": "local", - "object": "body", - "id": 27, - "filters": [ - { - "field": "name" - }, - { - "field": "legacy_key" - }, - { - "field": "shadow_circle_id" - } - ], - "description": "Update details of the body that you got the permission from. Might be good for boards, as long as name and legacy key are filtered.", - "combined": "local:update:body", - "circles": null, - "always_assigned": false, - "action": "update" - }, - { - "scope": "local", - "object": "body", - "id": 32, - "filters": [], - "description": "Change the data attached to a body membership in the body you got this permission from", - "combined": "local:update_member:body", - "circles": null, - "always_assigned": false, - "action": "update_member" - }, - { - "scope": "local", - "object": "body", - "id": 30, - "filters": [], - "description": "View the members in the body that you got that permission from", - "combined": "local:view_members:body", - "circles": null, - "always_assigned": false, - "action": "view_members" - }, - { - "scope": "local", - "object": "bound_circle", - "id": 22, - "filters": [], - "description": "Creating bound circles to the body the permission was granted in", - "combined": "local:create:bound_circle", - "circles": null, - "always_assigned": false, - "action": "create" - }, - { - "scope": "local", - "object": "circle", - "id": 14, - "filters": [], - "description": "Add any member of the body you got this permission from to any bound circle in that body, no matter if the circle is joinable or not or if the member wants that or not. This also allows to add yourself to any circle so only give it to people who anyways have many rights in the body", - "combined": "local:add_member:circle", - "circles": null, - "always_assigned": false, - "action": "add_member" - }, - { - "scope": "local", - "object": "circle", - "id": 12, - "filters": [], - "description": "View members of any circle in the body that you got this permission from", - "combined": "local:view_members:circle", - "circles": null, - "always_assigned": false, - "action": "view_members" - }, - { - "scope": "local", - "object": "join_request", - "id": 39, - "filters": [], - "description": "Process join requests in the body that you got the permission from", - "combined": "local:process:join_request", - "circles": null, - "always_assigned": false, - "action": "process" - }, - { - "scope": "local", - "object": "join_request", - "id": 36, - "filters": [], - "description": "View join request to the body you got this permission from", - "combined": "local:view:join_request", - "circles": null, - "always_assigned": false, - "action": "view" - }, - { - "scope": "local", - "object": "member", - "id": 53, - "filters": [], - "description": "Creates a member to the local that this permission was granted in", - "combined": "local:create:member", - "circles": null, - "always_assigned": false, - "action": "create" - }, - { - "scope": "local", - "object": "member", - "id": 44, - "filters": [], - "description": "Update any member in the body you got this permission from. Notice that member information is global and several bodies might have the permission to access the same member. Also don't assign it when not necessary, the member can update his own profile anyways.", - "combined": "local:update:member", - "circles": null, - "always_assigned": false, - "action": "update" - }, - { - "scope": "local", - "object": "member", - "id": 41, - "filters": [], - "description": "View information about all members in the body. This does not allow you to perform a members listing, you might however hold the list:body_memberships permission to perform a members listing of the members in the body", - "combined": "local:view:member", - "circles": null, - "always_assigned": false, - "action": "view" - }, - { - "scope": "local", - "object": "circle", - "id": 18, - "filters": [], - "description": "Delete any member from any circle in the body that you got this permission from, even those that you are not in a circle_admin position in or even have member status. Should never be assigned as circle_admins automatically get this permission", - "combined": "local:delete_members:circle", - "circles": null, - "always_assigned": false, - "action": "delete_members" - }, - { - "scope": "local", - "object": "circle", - "id": 16, - "filters": [], - "description": "Update membership details of members of any circle in the body that you got this permission from, even those that you are not in a circle_admin position in or even have member status. Should never be assigned as circle_admins automatically get this permission", - "combined": "local:update_members:circle", - "circles": null, - "always_assigned": false, - "action": "update_members" - }, - { - "scope": "local", - "object": "agora", - "id": 63, - "filters": [], - "description": "Approve participants and set participant types and statuses for specific boards for Agora statutory events. Would be useful for board members.", - "combined": "local:approve_members:agora", - "circles": null, - "always_assigned": false, - "action": "approve_members" - }, - { - "scope": "local", - "object": "epm", - "id": 64, - "filters": [], - "description": "Approve participants and set participant types and statuses for specific boards for EPM statutory events. Would be useful for board members.", - "combined": "local:approve_members:epm", - "circles": null, - "always_assigned": false, - "action": "approve_members" - } - ], + "permissions": null, "parent_circle_id": null, "parent_circle": null, "name": "General board circle", "joinable": false, "id": 2, "description": "This is the toplevel circle for all boards in the system. It grants boards administrative rights for their body.", - "child_circles": [ - { - "seo_url": 1, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Dresden", - "joinable": false, - "id": 1, - "description": "basically doing nothing", - "child_circles": null, - "body_id": 1, - "body": null - }, - { - "seo_url": 8, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Audit Commissioners", - "joinable": false, - "id": 8, - "description": "Circle of Audit Commissioners", - "child_circles": null, - "body_id": 3, - "body": null - }, - { - "seo_url": 9, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Juridical Commissioners", - "joinable": false, - "id": 9, - "description": "Circle of Juridical Commissioners", - "child_circles": null, - "body_id": 4, - "body": null - }, - { - "seo_url": 10, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Mediation Commissioners", - "joinable": false, - "id": 10, - "description": "Circle of Mediation Commissioners", - "child_circles": null, - "body_id": 5, - "body": null - }, - { - "seo_url": 11, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Network Commissioners", - "joinable": false, - "id": 11, - "description": "Circle of Network Commissioners", - "child_circles": null, - "body_id": 6, - "body": null - }, - { - "seo_url": 12, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Academy", - "joinable": false, - "id": 12, - "description": "Board members of the Academy", - "child_circles": null, - "body_id": 7, - "body": null - }, - { - "seo_url": 14, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "EQAC Speaker Team", - "joinable": false, - "id": 14, - "description": "Speaker Team of the Events Quality Assurance Committee", - "child_circles": null, - "body_id": 8, - "body": null - }, - { - "seo_url": 15, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Chairs", - "joinable": false, - "id": 15, - "description": "The Chair and Vice-Chair are elected by the Agora", - "child_circles": null, - "body_id": 9, - "body": null - }, - { - "seo_url": 22, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Enschede", - "joinable": false, - "id": 22, - "description": "The Board can be found on weekdays between 10:00-17:00 at the Office of AEGEE-Enschede in the Pakkerij and on Tuesday and Thursday evenings in our pub Asterion.", - "child_circles": null, - "body_id": 12, - "body": null - }, - { - "seo_url": 17, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "CEWG Coordinator", - "joinable": false, - "id": 17, - "description": "The Coordinator is responsible for the recruitment of the Policy Officer and the other Working Group Members.", - "child_circles": null, - "body_id": 10, - "body": null - }, - { - "seo_url": 18, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "AEO Project Managers", - "joinable": false, - "id": 18, - "description": "Three representatives in the function of Project Manager, Financial Manager and Content Manager, whose exact responsibilities are defined in the contract.", - "child_circles": null, - "body_id": 11, - "body": null - }, - { - "seo_url": 26, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "CIRC Speaker Team", - "joinable": false, - "id": 26, - "description": "The speaker team (ST) is responsible to send the open call to announce-l for new members upon internal needs and decides upon the selection of membership applications", - "child_circles": null, - "body_id": 14, - "body": null - }, - { - "seo_url": 27, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "ACT Speaker Team", - "joinable": false, - "id": 27, - "description": "The ACT is coordinated by the Speaker, up to two Vice-Speakers and the CD member responsible for the Action Agenda", - "child_circles": null, - "body_id": 13, - "body": null - }, - { - "seo_url": 28, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "HRC Board", - "joinable": false, - "id": 28, - "description": "The HRC Board consists of two elected members and one appointed Comité Directeur member.", - "child_circles": null, - "body_id": 15, - "body": null - }, - { - "seo_url": 29, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "ECWG Coordinator", - "joinable": false, - "id": 29, - "description": "The Coordinator is responsible for the recruitment of the Policy Officer and the other Working Group Members.", - "child_circles": null, - "body_id": 17, - "body": null - }, - { - "seo_url": 30, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "ERWG Coordinator", - "joinable": false, - "id": 30, - "description": "The Coordinator is responsible for the recruitment of the Policy Officer and the other Working Group Members.", - "child_circles": null, - "body_id": 16, - "body": null - }, - { - "seo_url": 31, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "YDWG Coordinator", - "joinable": false, - "id": 31, - "description": "The Coordinator is responsible for the recruitment of the Policy Officer and the other Working Group Members.", - "child_circles": null, - "body_id": 18, - "body": null - }, - { - "seo_url": 16, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Directors", - "joinable": false, - "id": 16, - "description": "A maximum of seven members from the Locals are the Directors. The Directors are the members of the Comité Directeur.", - "child_circles": null, - "body_id": 2, - "body": null - }, - { - "seo_url": 32, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "SUCT members", - "joinable": false, - "id": 32, - "description": "The SUCT is responsible for the good functioning and development of the project during one year.", - "child_circles": null, - "body_id": 19, - "body": null - }, - { - "seo_url": 36, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "AEGEEan Speaker Team", - "joinable": false, - "id": 36, - "description": "The AEGEEan Speaker Team consists of two elected members, i.e. Editor-in-Chief and Vice-Editor-in-Chief, and one appointed Comité Directeur member.", - "child_circles": null, - "body_id": 21, - "body": null - }, - { - "seo_url": 37, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "PRC Speaker Team", - "joinable": false, - "id": 37, - "description": "The PRC is coordinated by the Speaker Team, which consists of one Speaker, one Vice-Speaker, and an appointed Comité Directeur member.", - "child_circles": null, - "body_id": 22, - "body": null - }, - { - "seo_url": 43, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "YVote Project Managers", - "joinable": false, - "id": 43, - "description": "Three representatives in the function of Project Manager, Financial Manager and Content Manager, whose exact responsibilities are defined in the contract.", - "child_circles": null, - "body_id": 24, - "body": null - }, - { - "seo_url": 68, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Bucureşti", - "joinable": false, - "id": 68, - "description": "Board circle of AEGEE-Bucureşti", - "child_circles": null, - "body_id": 56, - "body": null - }, - { - "seo_url": 78, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Napoli", - "joinable": false, - "id": 78, - "description": "Board circle of AEGEE-Napoli", - "child_circles": null, - "body_id": 119, - "body": null - }, - { - "seo_url": 88, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Rostov-na-Donu", - "joinable": false, - "id": 88, - "description": "Board circle of AEGEE-Rostov-na-Donu", - "child_circles": null, - "body_id": 142, - "body": null - }, - { - "seo_url": 90, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Padova", - "joinable": false, - "id": 90, - "description": "Board circle of AEGEE-Padova", - "child_circles": null, - "body_id": 127, - "body": null - }, - { - "seo_url": 100, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Pisa", - "joinable": false, - "id": 100, - "description": "Board circle of AEGEE-Pisa", - "child_circles": null, - "body_id": 192, - "body": null - }, - { - "seo_url": 110, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Barcelona", - "joinable": false, - "id": 110, - "description": "Board circle of AEGEE-Barcelona", - "child_circles": null, - "body_id": 43, - "body": null - }, - { - "seo_url": 120, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Tbilisi", - "joinable": false, - "id": 120, - "description": "Board circle of AEGEE-Tbilisi", - "child_circles": null, - "body_id": 158, - "body": null - }, - { - "seo_url": 130, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Zadar", - "joinable": false, - "id": 130, - "description": "Board circle of AEGEE-Zadar", - "child_circles": null, - "body_id": 176, - "body": null - }, - { - "seo_url": 140, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Lublin", - "joinable": false, - "id": 140, - "description": "Board circle of AEGEE-Lublin", - "child_circles": null, - "body_id": 105, - "body": null - }, - { - "seo_url": 150, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Kraków", - "joinable": false, - "id": 150, - "description": "Board circle of AEGEE-Kraków", - "child_circles": null, - "body_id": 90, - "body": null - }, - { - "seo_url": 160, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Moskva", - "joinable": false, - "id": 160, - "description": "Board circle of AEGEE-Moskva", - "child_circles": null, - "body_id": 118, - "body": null - }, - { - "seo_url": 170, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Eskişehir", - "joinable": false, - "id": 170, - "description": "Board circle of AEGEE-Eskişehir", - "child_circles": null, - "body_id": 69, - "body": null - }, - { - "seo_url": 180, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Tartu", - "joinable": false, - "id": 180, - "description": "Board circle of AEGEE-Tartu", - "child_circles": null, - "body_id": 153, - "body": null - }, - { - "seo_url": 190, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Valencia", - "joinable": false, - "id": 190, - "description": "Board circle of AEGEE-Valencia", - "child_circles": null, - "body_id": 171, - "body": null - }, - { - "seo_url": 200, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Beograd", - "joinable": false, - "id": 200, - "description": "Board circle of AEGEE-Beograd", - "child_circles": null, - "body_id": 46, - "body": null - }, - { - "seo_url": 210, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Ferrara", - "joinable": false, - "id": 210, - "description": "Board circle of AEGEE-Ferrara", - "child_circles": null, - "body_id": 70, - "body": null - }, - { - "seo_url": 220, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Sumqayit", - "joinable": false, - "id": 220, - "description": "Board circle of AEGEE-Sumqayit", - "child_circles": null, - "body_id": 156, - "body": null - }, - { - "seo_url": 230, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Amsterdam", - "joinable": false, - "id": 230, - "description": "Board circle of AEGEE-Amsterdam", - "child_circles": null, - "body_id": 37, - "body": null - }, - { - "seo_url": 240, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Verona", - "joinable": false, - "id": 240, - "description": "Board circle of AEGEE-Verona", - "child_circles": null, - "body_id": 170, - "body": null - }, - { - "seo_url": 250, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Cagliari", - "joinable": false, - "id": 250, - "description": "Board circle of AEGEE-Cagliari", - "child_circles": null, - "body_id": 59, - "body": null - }, - { - "seo_url": 260, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Madrid", - "joinable": false, - "id": 260, - "description": "Board circle of AEGEE-Madrid", - "child_circles": null, - "body_id": 187, - "body": null - }, - { - "seo_url": 270, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Izmir", - "joinable": false, - "id": 270, - "description": "Board circle of AEGEE-Izmir", - "child_circles": null, - "body_id": 87, - "body": null - }, - { - "seo_url": 280, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Kaiserslautern", - "joinable": false, - "id": 280, - "description": "Board circle of AEGEE-Kaiserslautern", - "child_circles": null, - "body_id": 88, - "body": null - }, - { - "seo_url": 290, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Sofia", - "joinable": false, - "id": 290, - "description": "Board circle of AEGEE-Sofia", - "child_circles": null, - "body_id": 152, - "body": null - }, - { - "seo_url": 300, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Oviedo", - "joinable": false, - "id": 300, - "description": "Board circle of AEGEE-Oviedo", - "child_circles": null, - "body_id": 126, - "body": null - }, - { - "seo_url": 310, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Muğla", - "joinable": false, - "id": 310, - "description": "Board circle of AEGEE-Muğla", - "child_circles": null, - "body_id": 115, - "body": null - }, - { - "seo_url": 320, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Tallinn", - "joinable": false, - "id": 320, - "description": "Board circle of AEGEE-Tallinn", - "child_circles": null, - "body_id": 154, - "body": null - }, - { - "seo_url": 330, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Passau", - "joinable": false, - "id": 330, - "description": "Board circle of AEGEE-Passau", - "child_circles": null, - "body_id": 128, - "body": null - }, - { - "seo_url": 340, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Plzeň", - "joinable": false, - "id": 340, - "description": "Board circle of AEGEE-Plzeň", - "child_circles": null, - "body_id": 132, - "body": null - }, - { - "seo_url": 350, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Toruń", - "joinable": false, - "id": 350, - "description": "Board circle of AEGEE-Toruń", - "child_circles": null, - "body_id": 162, - "body": null - }, - { - "seo_url": 360, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Podgorica", - "joinable": false, - "id": 360, - "description": "Board circle of AEGEE-Podgorica", - "child_circles": null, - "body_id": 133, - "body": null - }, - { - "seo_url": 370, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Poznań", - "joinable": false, - "id": 370, - "description": "Board circle of AEGEE-Poznań", - "child_circles": null, - "body_id": 135, - "body": null - }, - { - "seo_url": 380, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Zagreb", - "joinable": false, - "id": 380, - "description": "Board circle of AEGEE-Zagreb", - "child_circles": null, - "body_id": 174, - "body": null - }, - { - "seo_url": 59, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Aachen", - "joinable": false, - "id": 59, - "description": "Der Vorstand Vertritt unseren Verein nach außen und kümmert sich um die strukturelle Unterstützung der Vereinsangelegenheiten im Tagesgeschäft.", - "child_circles": null, - "body_id": 30, - "body": null - }, - { - "seo_url": 70, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Enschede", - "joinable": false, - "id": 70, - "description": "Board circle of AEGEE-Enschede", - "child_circles": null, - "body_id": 12, - "body": null - }, - { - "seo_url": 80, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Brussel-Bruxelles", - "joinable": false, - "id": 80, - "description": "Board circle of AEGEE-Brussel-Bruxelles", - "child_circles": null, - "body_id": 57, - "body": null - }, - { - "seo_url": 50, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "SU30 Project Managers", - "joinable": false, - "id": 50, - "description": "Three representatives in the function of Project Manager, Financial Manager and Content Manager, whose exact responsibilities are defined in the contract.", - "child_circles": null, - "body_id": 27, - "body": null - }, - { - "seo_url": 42, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "EOT Project Managers", - "joinable": false, - "id": 42, - "description": "Three representatives in the function of Project Manager, Financial Manager and Content Manager, whose exact responsibilities are defined in the contract.", - "child_circles": null, - "body_id": 23, - "body": null - }, - { - "seo_url": 92, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Paris", - "joinable": false, - "id": 92, - "description": "Board circle of AEGEE-Paris", - "child_circles": null, - "body_id": 130, - "body": null - }, - { - "seo_url": 102, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Adana", - "joinable": false, - "id": 102, - "description": "Board circle of AEGEE-Adana", - "child_circles": null, - "body_id": 33, - "body": null - }, - { - "seo_url": 112, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Osnabrück", - "joinable": false, - "id": 112, - "description": "Board circle of AEGEE-Osnabrück", - "child_circles": null, - "body_id": 125, - "body": null - }, - { - "seo_url": 122, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Sheffield", - "joinable": false, - "id": 122, - "description": "Board circle of AEGEE-Sheffield", - "child_circles": null, - "body_id": 151, - "body": null - }, - { - "seo_url": 132, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Çanakkale", - "joinable": false, - "id": 132, - "description": "Board circle of AEGEE-Çanakkale", - "child_circles": null, - "body_id": 182, - "body": null - }, - { - "seo_url": 142, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Bergamo", - "joinable": false, - "id": 142, - "description": "Board circle of AEGEE-Bergamo", - "child_circles": null, - "body_id": 47, - "body": null - }, - { - "seo_url": 152, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Valletta", - "joinable": false, - "id": 152, - "description": "Board circle of AEGEE-Valletta", - "child_circles": null, - "body_id": 169, - "body": null - }, - { - "seo_url": 162, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Skopje", - "joinable": false, - "id": 162, - "description": "Board circle of AEGEE-Skopje", - "child_circles": null, - "body_id": 149, - "body": null - }, - { - "seo_url": 172, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Maastricht", - "joinable": false, - "id": 172, - "description": "Board circle of AEGEE-Maastricht", - "child_circles": null, - "body_id": 107, - "body": null - }, - { - "seo_url": 182, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Leiden", - "joinable": false, - "id": 182, - "description": "Board circle of AEGEE-Leiden", - "child_circles": null, - "body_id": 98, - "body": null - }, - { - "seo_url": 192, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Ploiesti", - "joinable": false, - "id": 192, - "description": "Board circle of AEGEE-Ploiesti", - "child_circles": null, - "body_id": 131, - "body": null - }, - { - "seo_url": 202, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Firenze", - "joinable": false, - "id": 202, - "description": "Board circle of AEGEE-Firenze", - "child_circles": null, - "body_id": 71, - "body": null - }, - { - "seo_url": 212, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Tiranë", - "joinable": false, - "id": 212, - "description": "Board circle of AEGEE-Tiranë", - "child_circles": null, - "body_id": 163, - "body": null - }, - { - "seo_url": 222, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Wroclaw", - "joinable": false, - "id": 222, - "description": "Board circle of AEGEE-Wroclaw", - "child_circles": null, - "body_id": 177, - "body": null - }, - { - "seo_url": 232, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Bialystok", - "joinable": false, - "id": 232, - "description": "Board circle of AEGEE-Bialystok", - "child_circles": null, - "body_id": 48, - "body": null - }, - { - "seo_url": 242, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Gdańsk", - "joinable": false, - "id": 242, - "description": "Board circle of AEGEE-Gdańsk", - "child_circles": null, - "body_id": 75, - "body": null - }, - { - "seo_url": 252, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Warszawa", - "joinable": false, - "id": 252, - "description": "Board circle of AEGEE-Warszawa", - "child_circles": null, - "body_id": 175, - "body": null - }, - { - "seo_url": 262, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Ankara", - "joinable": false, - "id": 262, - "description": "Board circle of AEGEE-Ankara", - "child_circles": null, - "body_id": 38, - "body": null - }, - { - "seo_url": 272, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Zielona Góra", - "joinable": false, - "id": 272, - "description": "Board circle of AEGEE-Zielona Góra", - "child_circles": null, - "body_id": 181, - "body": null - }, - { - "seo_url": 282, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Hamburg", - "joinable": false, - "id": 282, - "description": "Board circle of AEGEE-Hamburg", - "child_circles": null, - "body_id": 78, - "body": null - }, - { - "seo_url": 292, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Milano", - "joinable": false, - "id": 292, - "description": "Board circle of AEGEE-Milano", - "child_circles": null, - "body_id": 188, - "body": null - }, - { - "seo_url": 302, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Lyon", - "joinable": false, - "id": 302, - "description": "Board circle of AEGEE-Lyon", - "child_circles": null, - "body_id": 106, - "body": null - }, - { - "seo_url": 312, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Ioannina", - "joinable": false, - "id": 312, - "description": "Board circle of AEGEE-Ioannina", - "child_circles": null, - "body_id": 86, - "body": null - }, - { - "seo_url": 322, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Palermo", - "joinable": false, - "id": 322, - "description": "Board circle of AEGEE-Palermo", - "child_circles": null, - "body_id": 189, - "body": null - }, - { - "seo_url": 332, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Mainz-Wiesbaden", - "joinable": false, - "id": 332, - "description": "Board circle of AEGEE-Mainz-Wiesbaden", - "child_circles": null, - "body_id": 108, - "body": null - }, - { - "seo_url": 342, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Niš", - "joinable": false, - "id": 342, - "description": "Board circle of AEGEE-Niš", - "child_circles": null, - "body_id": 122, - "body": null - }, - { - "seo_url": 352, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Tyumen", - "joinable": false, - "id": 352, - "description": "Board circle of AEGEE-Tyumen", - "child_circles": null, - "body_id": 166, - "body": null - }, - { - "seo_url": 362, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Manchester", - "joinable": false, - "id": 362, - "description": "Board circle of AEGEE-Manchester", - "child_circles": null, - "body_id": 111, - "body": null - }, - { - "seo_url": 372, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Reggio Calabria", - "joinable": false, - "id": 372, - "description": "Board circle of AEGEE-Reggio Calabria", - "child_circles": null, - "body_id": 139, - "body": null - }, - { - "seo_url": 382, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Vigo", - "joinable": false, - "id": 382, - "description": "Board circle of AEGEE-Vigo", - "child_circles": null, - "body_id": 172, - "body": null - }, - { - "seo_url": 62, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Academy", - "joinable": false, - "id": 62, - "description": "Board circle of AEGEE-Academy", - "child_circles": null, - "body_id": 7, - "body": null - }, - { - "seo_url": 72, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Debrecen", - "joinable": false, - "id": 72, - "description": "Board circle of AEGEE-Debrecen", - "child_circles": null, - "body_id": 64, - "body": null - }, - { - "seo_url": 82, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Peiraias", - "joinable": false, - "id": 82, - "description": "Board circle of AEGEE-Peiraias", - "child_circles": null, - "body_id": 129, - "body": null - }, - { - "seo_url": 94, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Las Palmas", - "joinable": false, - "id": 94, - "description": "Board circle of AEGEE-Las Palmas", - "child_circles": null, - "body_id": 99, - "body": null - }, - { - "seo_url": 104, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Athina", - "joinable": false, - "id": 104, - "description": "Board circle of AEGEE-Athina", - "child_circles": null, - "body_id": 40, - "body": null - }, - { - "seo_url": 114, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Chişinău", - "joinable": false, - "id": 114, - "description": "Board circle of AEGEE-Chişinău", - "child_circles": null, - "body_id": 61, - "body": null - }, - { - "seo_url": 124, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Porto", - "joinable": false, - "id": 124, - "description": "Board circle of AEGEE-Porto", - "child_circles": null, - "body_id": 137, - "body": null - }, - { - "seo_url": 134, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Alicante", - "joinable": false, - "id": 134, - "description": "Board circle of AEGEE-Alicante", - "child_circles": null, - "body_id": 34, - "body": null - }, - { - "seo_url": 144, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Pécs", - "joinable": false, - "id": 144, - "description": "Board circle of AEGEE-Pécs", - "child_circles": null, - "body_id": 136, - "body": null - }, - { - "seo_url": 154, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Toulouse", - "joinable": false, - "id": 154, - "description": "Board circle of AEGEE-Toulouse", - "child_circles": null, - "body_id": 164, - "body": null - }, - { - "seo_url": 164, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Hatay", - "joinable": false, - "id": 164, - "description": "Board circle of AEGEE-Hatay", - "child_circles": null, - "body_id": 183, - "body": null - }, - { - "seo_url": 174, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Burgos", - "joinable": false, - "id": 174, - "description": "Board circle of AEGEE-Burgos", - "child_circles": null, - "body_id": 55, - "body": null - }, - { - "seo_url": 184, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Budapest", - "joinable": false, - "id": 184, - "description": "Board circle of AEGEE-Budapest", - "child_circles": null, - "body_id": 58, - "body": null - }, - { - "seo_url": 194, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Thessaloníki", - "joinable": false, - "id": 194, - "description": "Board circle of AEGEE-Thessaloníki", - "child_circles": null, - "body_id": 160, - "body": null - }, - { - "seo_url": 204, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Minsk", - "joinable": false, - "id": 204, - "description": "Board circle of AEGEE-Minsk", - "child_circles": null, - "body_id": 114, - "body": null - }, - { - "seo_url": 214, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Lisboa", - "joinable": false, - "id": 214, - "description": "Board circle of AEGEE-Lisboa", - "child_circles": null, - "body_id": 102, - "body": null - }, - { - "seo_url": 224, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Patra", - "joinable": false, - "id": 224, - "description": "Board circle of AEGEE-Patra", - "child_circles": null, - "body_id": 134, - "body": null - }, - { - "seo_url": 234, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Genova", - "joinable": false, - "id": 234, - "description": "Board circle of AEGEE-Genova", - "child_circles": null, - "body_id": 77, - "body": null - }, - { - "seo_url": 244, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Utrecht", - "joinable": false, - "id": 244, - "description": "Board circle of AEGEE-Utrecht", - "child_circles": null, - "body_id": 167, - "body": null - }, - { - "seo_url": 254, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Erfurt", - "joinable": false, - "id": 254, - "description": "Board circle of AEGEE-Erfurt", - "child_circles": null, - "body_id": 72, - "body": null - }, - { - "seo_url": 264, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Berlin", - "joinable": false, - "id": 264, - "description": "Board circle of AEGEE-Berlin", - "child_circles": null, - "body_id": 49, - "body": null - }, - { - "seo_url": 274, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Heidelberg", - "joinable": false, - "id": 274, - "description": "Board circle of AEGEE-Heidelberg", - "child_circles": null, - "body_id": 81, - "body": null - }, - { - "seo_url": 284, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Darmstadt", - "joinable": false, - "id": 284, - "description": "Board circle of AEGEE-Darmstadt", - "child_circles": null, - "body_id": 62, - "body": null - }, - { - "seo_url": 294, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Antalya", - "joinable": false, - "id": 294, - "description": "Board circle of AEGEE-Antalya", - "child_circles": null, - "body_id": 39, - "body": null - }, - { - "seo_url": 304, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Kyïv", - "joinable": false, - "id": 304, - "description": "Board circle of AEGEE-Kyïv", - "child_circles": null, - "body_id": 94, - "body": null - }, - { - "seo_url": 314, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-León", - "joinable": false, - "id": 314, - "description": "Board circle of AEGEE-León", - "child_circles": null, - "body_id": 101, - "body": null - }, - { - "seo_url": 324, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Aachen", - "joinable": false, - "id": 324, - "description": "Board circle of AEGEE-Aachen", - "child_circles": null, - "body_id": 30, - "body": null - }, - { - "seo_url": 334, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Banja Luka", - "joinable": false, - "id": 334, - "description": "Board circle of AEGEE-Banja Luka", - "child_circles": null, - "body_id": 44, - "body": null - }, - { - "seo_url": 344, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Kharkiv", - "joinable": false, - "id": 344, - "description": "Board circle of AEGEE-Kharkiv", - "child_circles": null, - "body_id": 89, - "body": null - }, - { - "seo_url": 354, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Torino", - "joinable": false, - "id": 354, - "description": "Board circle of AEGEE-Torino", - "child_circles": null, - "body_id": 190, - "body": null - }, - { - "seo_url": 364, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Brno", - "joinable": false, - "id": 364, - "description": "Board circle of AEGEE-Brno", - "child_circles": null, - "body_id": 54, - "body": null - }, - { - "seo_url": 374, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Odessa", - "joinable": false, - "id": 374, - "description": "Board circle of AEGEE-Odessa", - "child_circles": null, - "body_id": 123, - "body": null - }, - { - "seo_url": 384, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Udine", - "joinable": false, - "id": 384, - "description": "Board circle of AEGEE-Udine", - "child_circles": null, - "body_id": 191, - "body": null - }, - { - "seo_url": 64, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Dresden", - "joinable": false, - "id": 64, - "description": "Board circle of AEGEE-Dresden", - "child_circles": null, - "body_id": 1, - "body": null - }, - { - "seo_url": 74, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Leuven", - "joinable": false, - "id": 74, - "description": "Board circle of AEGEE-Leuven", - "child_circles": null, - "body_id": 100, - "body": null - }, - { - "seo_url": 84, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Groningen", - "joinable": false, - "id": 84, - "description": "Board circle of AEGEE-Groningen", - "child_circles": null, - "body_id": 76, - "body": null - }, - { - "seo_url": 96, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Sankt-Peterburg", - "joinable": false, - "id": 96, - "description": "Board circle of AEGEE-Sankt-Peterburg", - "child_circles": null, - "body_id": 146, - "body": null - }, - { - "seo_url": 106, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Cosenza", - "joinable": false, - "id": 106, - "description": "Board circle of AEGEE-Cosenza", - "child_circles": null, - "body_id": 65, - "body": null - }, - { - "seo_url": 116, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Salerno", - "joinable": false, - "id": 116, - "description": "Board circle of AEGEE-Salerno", - "child_circles": null, - "body_id": 144, - "body": null - }, - { - "seo_url": 126, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Praha", - "joinable": false, - "id": 126, - "description": "Board circle of AEGEE-Praha", - "child_circles": null, - "body_id": 138, - "body": null - }, - { - "seo_url": 136, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Bamberg", - "joinable": false, - "id": 136, - "description": "Board circle of AEGEE-Bamberg", - "child_circles": null, - "body_id": 41, - "body": null - }, - { - "seo_url": 146, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Cluj-Napoca", - "joinable": false, - "id": 146, - "description": "Board circle of AEGEE-Cluj-Napoca", - "child_circles": null, - "body_id": 63, - "body": null - }, - { - "seo_url": 156, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Samara", - "joinable": false, - "id": 156, - "description": "Board circle of AEGEE-Samara", - "child_circles": null, - "body_id": 143, - "body": null - }, - { - "seo_url": 166, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-A Coruna", - "joinable": false, - "id": 166, - "description": "Board circle of AEGEE-A Coruna", - "child_circles": null, - "body_id": 35, - "body": null - }, - { - "seo_url": 176, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Tarragona", - "joinable": false, - "id": 176, - "description": "Board circle of AEGEE-Tarragona", - "child_circles": null, - "body_id": 155, - "body": null - }, - { - "seo_url": 186, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Valladolid", - "joinable": false, - "id": 186, - "description": "Board circle of AEGEE-Valladolid", - "child_circles": null, - "body_id": 168, - "body": null - }, - { - "seo_url": 196, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Lille", - "joinable": false, - "id": 196, - "description": "Board circle of AEGEE-Lille", - "child_circles": null, - "body_id": 184, - "body": null - }, - { - "seo_url": 206, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Düsseldorf", - "joinable": false, - "id": 206, - "description": "Board circle of AEGEE-Düsseldorf", - "child_circles": null, - "body_id": 67, - "body": null - }, - { - "seo_url": 216, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Gliwice", - "joinable": false, - "id": 216, - "description": "Board circle of AEGEE-Gliwice", - "child_circles": null, - "body_id": 80, - "body": null - }, - { - "seo_url": 226, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Tilburg", - "joinable": false, - "id": 226, - "description": "Board circle of AEGEE-Tilburg", - "child_circles": null, - "body_id": 161, - "body": null - }, - { - "seo_url": 236, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Málaga", - "joinable": false, - "id": 236, - "description": "Board circle of AEGEE-Málaga", - "child_circles": null, - "body_id": 116, - "body": null - }, - { - "seo_url": 246, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Ljubljana", - "joinable": false, - "id": 246, - "description": "Board circle of AEGEE-Ljubljana", - "child_circles": null, - "body_id": 104, - "body": null - }, - { - "seo_url": 256, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Roma", - "joinable": false, - "id": 256, - "description": "Board circle of AEGEE-Roma", - "child_circles": null, - "body_id": 140, - "body": null - }, - { - "seo_url": 266, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Iaşi", - "joinable": false, - "id": 266, - "description": "Board circle of AEGEE-Iaşi", - "child_circles": null, - "body_id": 84, - "body": null - }, - { - "seo_url": 276, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Yerevan", - "joinable": false, - "id": 276, - "description": "Board circle of AEGEE-Yerevan", - "child_circles": null, - "body_id": 179, - "body": null - }, - { - "seo_url": 286, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Grodno", - "joinable": false, - "id": 286, - "description": "Board circle of AEGEE-Grodno", - "child_circles": null, - "body_id": 79, - "body": null - }, - { - "seo_url": 296, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Bilbao", - "joinable": false, - "id": 296, - "description": "Board circle of AEGEE-Bilbao", - "child_circles": null, - "body_id": 50, - "body": null - }, - { - "seo_url": 306, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Bari", - "joinable": false, - "id": 306, - "description": "Board circle of AEGEE-Bari", - "child_circles": null, - "body_id": 45, - "body": null - }, - { - "seo_url": 316, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Heraklio", - "joinable": false, - "id": 316, - "description": "Board circle of AEGEE-Heraklio", - "child_circles": null, - "body_id": 85, - "body": null - }, - { - "seo_url": 326, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Brescia", - "joinable": false, - "id": 326, - "description": "Board circle of AEGEE-Brescia", - "child_circles": null, - "body_id": 53, - "body": null - }, - { - "seo_url": 336, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Mağusa", - "joinable": false, - "id": 336, - "description": "Board circle of AEGEE-Mağusa", - "child_circles": null, - "body_id": 113, - "body": null - }, - { - "seo_url": 346, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Maribor", - "joinable": false, - "id": 346, - "description": "Board circle of AEGEE-Maribor", - "child_circles": null, - "body_id": 112, - "body": null - }, - { - "seo_url": 356, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Castelló", - "joinable": false, - "id": 356, - "description": "Board circle of AEGEE-Castelló", - "child_circles": null, - "body_id": 60, - "body": null - }, - { - "seo_url": 366, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Nijmegen", - "joinable": false, - "id": 366, - "description": "Board circle of AEGEE-Nijmegen", - "child_circles": null, - "body_id": 121, - "body": null - }, - { - "seo_url": 376, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Novi Sad", - "joinable": false, - "id": 376, - "description": "Board circle of AEGEE-Novi Sad", - "child_circles": null, - "body_id": 124, - "body": null - }, - { - "seo_url": 66, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Bologna", - "joinable": false, - "id": 66, - "description": "Board circle of AEGEE-Bologna", - "child_circles": null, - "body_id": 51, - "body": null - }, - { - "seo_url": 76, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Riga", - "joinable": false, - "id": 76, - "description": "Board circle of AEGEE-Riga", - "child_circles": null, - "body_id": 145, - "body": null - }, - { - "seo_url": 86, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Ryazan", - "joinable": false, - "id": 86, - "description": "Board circle of AEGEE-Ryazan", - "child_circles": null, - "body_id": 141, - "body": null - }, - { - "seo_url": 46, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "EPM Content Team and CD responsible(s)", - "joinable": false, - "id": 46, - "description": "The Content Team is appointed by the Comité Directeur. The Content Team, in cooperation with the Comité Directeur, is responsible for the preparation of the EPM.", - "child_circles": null, - "body_id": 26, - "body": null - }, - { - "seo_url": 98, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Wien", - "joinable": false, - "id": 98, - "description": "Board circle of AEGEE-Wien", - "child_circles": null, - "body_id": 178, - "body": null - }, - { - "seo_url": 108, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-London", - "joinable": false, - "id": 108, - "description": "Board circle of AEGEE-London", - "child_circles": null, - "body_id": 103, - "body": null - }, - { - "seo_url": 118, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Istanbul", - "joinable": false, - "id": 118, - "description": "Board circle of AEGEE-Istanbul", - "child_circles": null, - "body_id": 82, - "body": null - }, - { - "seo_url": 128, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Mannheim", - "joinable": false, - "id": 128, - "description": "Board circle of AEGEE-Mannheim", - "child_circles": null, - "body_id": 109, - "body": null - }, - { - "seo_url": 138, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Delft", - "joinable": false, - "id": 138, - "description": "Board circle of AEGEE-Delft", - "child_circles": null, - "body_id": 66, - "body": null - }, - { - "seo_url": 148, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Sibiu", - "joinable": false, - "id": 148, - "description": "Board circle of AEGEE-Sibiu", - "child_circles": null, - "body_id": 148, - "body": null - }, - { - "seo_url": 158, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Tenerife", - "joinable": false, - "id": 158, - "description": "Board circle of AEGEE-Tenerife", - "child_circles": null, - "body_id": 159, - "body": null - }, - { - "seo_url": 168, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Bakı", - "joinable": false, - "id": 168, - "description": "Board circle of AEGEE-Bakı", - "child_circles": null, - "body_id": 42, - "body": null - }, - { - "seo_url": 178, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Eindhoven", - "joinable": false, - "id": 178, - "description": "Board circle of AEGEE-Eindhoven", - "child_circles": null, - "body_id": 68, - "body": null - }, - { - "seo_url": 188, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Siena", - "joinable": false, - "id": 188, - "description": "Board circle of AEGEE-Siena", - "child_circles": null, - "body_id": 150, - "body": null - }, - { - "seo_url": 198, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Agrigento", - "joinable": false, - "id": 198, - "description": "Board circle of AEGEE-Agrigento", - "child_circles": null, - "body_id": 36, - "body": null - }, - { - "seo_url": 208, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Treviso", - "joinable": false, - "id": 208, - "description": "Board circle of AEGEE-Treviso", - "child_circles": null, - "body_id": 165, - "body": null - }, - { - "seo_url": 218, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Zaragoza", - "joinable": false, - "id": 218, - "description": "Board circle of AEGEE-Zaragoza", - "child_circles": null, - "body_id": 180, - "body": null - }, - { - "seo_url": 228, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Catania", - "joinable": false, - "id": 228, - "description": "Board circle of AEGEE-Catania", - "child_circles": null, - "body_id": 185, - "body": null - }, - { - "seo_url": 238, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Gaziantep", - "joinable": false, - "id": 238, - "description": "Board circle of AEGEE-Gaziantep", - "child_circles": null, - "body_id": 74, - "body": null - }, - { - "seo_url": 248, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Helsinki", - "joinable": false, - "id": 248, - "description": "Board circle of AEGEE-Helsinki", - "child_circles": null, - "body_id": 83, - "body": null - }, - { - "seo_url": 258, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Voronezh", - "joinable": false, - "id": 258, - "description": "Board circle of AEGEE-Voronezh", - "child_circles": null, - "body_id": 173, - "body": null - }, - { - "seo_url": 268, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Naxçıvan", - "joinable": false, - "id": 268, - "description": "Board circle of AEGEE-Naxçıvan", - "child_circles": null, - "body_id": 120, - "body": null - }, - { - "seo_url": 278, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Messina", - "joinable": false, - "id": 278, - "description": "Board circle of AEGEE-Messina", - "child_circles": null, - "body_id": 110, - "body": null - }, - { - "seo_url": 288, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Santander", - "joinable": false, - "id": 288, - "description": "Board circle of AEGEE-Santander", - "child_circles": null, - "body_id": 147, - "body": null - }, - { - "seo_url": 298, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Karlsruhe", - "joinable": false, - "id": 298, - "description": "Board circle of AEGEE-Karlsruhe", - "child_circles": null, - "body_id": 91, - "body": null - }, - { - "seo_url": 308, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-München", - "joinable": false, - "id": 308, - "description": "Board circle of AEGEE-München", - "child_circles": null, - "body_id": 117, - "body": null - }, - { - "seo_url": 318, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Stuttgart", - "joinable": false, - "id": 318, - "description": "Board circle of AEGEE-Stuttgart", - "child_circles": null, - "body_id": 157, - "body": null - }, - { - "seo_url": 328, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Kastoria", - "joinable": false, - "id": 328, - "description": "Board circle of AEGEE-Kastoria", - "child_circles": null, - "body_id": 93, - "body": null - }, - { - "seo_url": 338, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Bratislava", - "joinable": false, - "id": 338, - "description": "Board circle of AEGEE-Bratislava", - "child_circles": null, - "body_id": 52, - "body": null - }, - { - "seo_url": 348, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Katowice", - "joinable": false, - "id": 348, - "description": "Board circle of AEGEE-Katowice", - "child_circles": null, - "body_id": 92, - "body": null - }, - { - "seo_url": 358, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Lviv", - "joinable": false, - "id": 358, - "description": "Board circle of AEGEE-Lviv", - "child_circles": null, - "body_id": 95, - "body": null - }, - { - "seo_url": 368, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Frankfurt am Main", - "joinable": false, - "id": 368, - "description": "Board circle of AEGEE-Frankfurt am Main", - "child_circles": null, - "body_id": 73, - "body": null - }, - { - "seo_url": 378, - "permissions": null, - "parent_circle_id": 2, - "parent_circle": null, - "name": "Board AEGEE-Köln", - "joinable": false, - "id": 378, - "description": "Board circle of AEGEE-Köln", - "child_circles": null, - "body_id": 96, - "body": null - } - ], + "child_circles": null, "body_id": null, "body": null }, - { - "seo_url": 134, - "permissions": [], - "parent_circle_id": 2, - "parent_circle": { - "seo_url": 2, - "permissions": null, - "parent_circle_id": null, - "parent_circle": null, - "name": "General board circle", - "joinable": false, - "id": 2, - "description": "This is the toplevel circle for all boards in the system. It grants boards administrative rights for their body.", - "child_circles": null, - "body_id": null, - "body": null - }, - "name": "Board AEGEE-Alicante", - "joinable": false, - "id": 134, - "description": "Board circle of AEGEE-Alicante", - "child_circles": [], - "body_id": 34, - "body": null - } - ] + "name": "Board AEGEE-Alicante", + "joinable": false, + "id": 134, + "description": "Board circle of AEGEE-Alicante", + "child_circles": [], + "body_id": 34, + "body": null + } ] } \ No newline at end of file diff --git a/test/assets/oms-core-bodies.json b/test/assets/oms-core-bodies.json index 4768fbcf..264b04bd 100644 --- a/test/assets/oms-core-bodies.json +++ b/test/assets/oms-core-bodies.json @@ -7,7 +7,7 @@ "seo_url": 34, "phone": null, "name": "AEGEE-Alicante", - "legacy_key": "ALC", + "code": "ALC", "id": 34, "email": "junta@aegeealicante.org", "description": "Local in Alicante, see also http://www.aegeealicante.org/, https://www.facebook.com/AEGEEAlicante, https://twitter.com/AEGEEAlicante", @@ -21,7 +21,7 @@ "seo_url": 9, "phone": null, "name": "Chair Team of the Agora", - "legacy_key": "XCH", + "code": "XCH", "id": 9, "email": "chair@aegee.org", "description": "The Chair team is responsible for preparing and moderating the Agorae. They preside over them, take the minutes and are responsible for the IT during the events.", diff --git a/test/assets/oms-core-body-members.json b/test/assets/oms-core-body-members.json index 25c528c9..b6296073 100644 --- a/test/assets/oms-core-body-members.json +++ b/test/assets/oms-core-body-members.json @@ -2,25 +2,20 @@ "success": true, "data": [ { - "member_id": 4, - "member": { - "user_id": 9, - "user": { - "superadmin": false, - "name": "paul.smits", - "member_id": 4, - "inserted_at": "2018-05-04T11:16:50.531076", - "id": 9, - "email": "paul.l.smits@gmail.com", - "active": true - }, + "user_id": 4, + "user": { + "superadmin": false, + "name": "paul.smits", + "inserted_at": "2018-05-04T11:16:50.531076", + "id": 9, + "email": "paul.l.smits@gmail.com", + "active": true, "seo_url": "36125407_", "primary_body_id": null, "primary_body": null, "phone": "+31649936487", "last_name": "Smits", "join_requests": null, - "id": 4, "gender": "None", "first_name": "Paul", "date_of_birth": "1990-10-17", diff --git a/test/assets/oms-core-members.json b/test/assets/oms-core-members.json index 2d16f2f1..84ba70aa 100644 --- a/test/assets/oms-core-members.json +++ b/test/assets/oms-core-members.json @@ -1,7 +1,11 @@ { "success": true, "data": [{ - "seo_url": "microservice", + "superadmin": true, + "name": "admin", + "inserted_at": "2018-05-03T23:12:01.111566", + "email": "admin@aegee.org", + "active": true, "primary_body_id": null, "primary_body": null, "phone": "+123456789", @@ -12,17 +16,21 @@ "date_of_birth": "2010-04-17", "address": "Europe", "about_me": "I am a microservice. I have a user account so the system can access itself from within, don't delete me." - }, { - "seo_url": "microservice", + },{ + "superadmin": false, + "name": "not_admin", + "inserted_at": "2018-05-03T23:12:01.111566", + "email": "test@aegee.org", + "active": true, "primary_body_id": null, "primary_body": null, "phone": "+123456789", - "last_name": "Microservice 2", + "last_name": "random", "id": 2, - "gender": "machine", - "first_name": "Microservice", + "gender": "random", + "first_name": "random", "date_of_birth": "2010-04-17", "address": "Europe", - "about_me": "I am a microservice. I have a user account so the system can access itself from within, don't delete me." + "about_me": "random" }] } \ No newline at end of file diff --git a/test/assets/oms-core-permissions-full.json b/test/assets/oms-core-permissions-full.json index bd1f34a7..9dd36d52 100644 --- a/test/assets/oms-core-permissions-full.json +++ b/test/assets/oms-core-permissions-full.json @@ -8,7 +8,6 @@ "description": "Set paid, cancelled or attended status for EPM statutory events. Would be useful for incoming organizers.", "combined": "global:manage_applications:epm", "circles": null, - "always_assigned": false, "action": "manage_applications" }, { "scope": "global", @@ -18,7 +17,6 @@ "description": "Create, edit and delete Agora statutory events.", "combined": "global:manage_event:agora", "circles": null, - "always_assigned": false, "action": "manage_event" }, { "scope": "global", @@ -28,7 +26,6 @@ "description": "See all applications for EPM statutory events.", "combined": "global:see_applications:epm", "circles": null, - "always_assigned": false, "action": "see_applications" }, { "scope": "global", @@ -38,7 +35,6 @@ "description": "Accept or reject applications for Agora statutory events. Would be useful for Chair Team.", "combined": "global:accept_applications:agora", "circles": null, - "always_assigned": false, "action": "accept_applications" }, { "scope": "global", @@ -48,7 +44,6 @@ "description": "See all applications for Agora statutory events.", "combined": "global:see_applications:agora", "circles": null, - "always_assigned": false, "action": "see_applications" }, { "scope": "global", @@ -58,7 +53,6 @@ "description": "Accept or reject applications for EPM statutory events. Would be useful for CD.", "combined": "global:accept_applications:epm", "circles": null, - "always_assigned": false, "action": "accept_applications" }, { "scope": "global", @@ -68,7 +62,6 @@ "description": "Set paid, cancelled or attended status for Agora statutory events. Would be useful for incoming organizers.", "combined": "global:manage_applications:agora", "circles": null, - "always_assigned": false, "action": "manage_applications" }, { "scope": "global", @@ -78,7 +71,6 @@ "description": "Create, edit and delete EPM statutory events.", "combined": "global:manage_event:epm", "circles": null, - "always_assigned": false, "action": "manage_event" }, { "scope": "global", @@ -128,7 +120,6 @@ "description": "Use massmailer.", "combined": "global:use_massmailer:agora", "circles": null, - "always_assigned": false, "action": "use_massmailer" }, { "scope": "global", @@ -138,7 +129,6 @@ "description": "Use massmailer.", "combined": "global:use_massmailer:epm", "circles": null, - "always_assigned": false, "action": "use_massmailer" }, { "scope": "global", @@ -148,7 +138,6 @@ "description": "Manage candidates", "combined": "global:manage_candidates:agora", "circles": null, - "always_assigned": false, "action": "manage_candidates" }, { "scope": "global", @@ -158,7 +147,6 @@ "description": "Update memberslist status", "combined": "global:update_memberslist_status:agora", "circles": null, - "always_assigned": false, "action": "update_memberslist_status" }, { "scope": "global", @@ -168,7 +156,6 @@ "description": "Manage plenaries", "combined": "global:manage_plenaries:agora", "circles": null, - "always_assigned": false, "action": "manage_plenaries" }, { "scope": "global", @@ -178,7 +165,6 @@ "description": "See plenaries", "combined": "global:see_plenaries:agora", "circles": null, - "always_assigned": false, "action": "see_plenaries" }, { "scope": "global", @@ -188,7 +174,6 @@ "description": "Mark plenary attendance", "combined": "global:mark_attendance:agora", "circles": null, - "always_assigned": false, "action": "mark_attendance" }, { "scope": "global", @@ -198,7 +183,6 @@ "description": "Mark fee_paid for memberslists", "combined": "global:set_memberslists_fee_paid:agora", "circles": null, - "always_assigned": false, "action": "set_memberslists_fee_paid" }, { "scope": "global", @@ -208,7 +192,6 @@ "description": "Mark fee_paid for memberslists", "combined": "global:manage_question_lines:agora", "circles": null, - "always_assigned": false, "action": "manage_question_lines" }] } diff --git a/test/assets/oms-core-valid.json b/test/assets/oms-core-valid.json index 451760d4..4b7b9293 100644 --- a/test/assets/oms-core-valid.json +++ b/test/assets/oms-core-valid.json @@ -1,17 +1,11 @@ { "success": true, "data": { - "user_id": 1, - "user": { - "superadmin": true, - "name": "admin", - "member_id": null, - "inserted_at": "2018-05-03T23:12:01.111566", - "id": 1, - "email": "admin@aegee.org", - "active": true - }, - "seo_url": "microservice", + "superadmin": true, + "name": "admin", + "inserted_at": "2018-05-03T23:12:01.111566", + "email": "admin@aegee.org", + "active": true, "primary_body_id": null, "primary_body": null, "phone": "+123456789", @@ -30,7 +24,7 @@ "seo_url": 9, "phone": null, "name": "Chair Team of the Agora", - "legacy_key": "XCH", + "code": "XCH", "id": 9, "email": "chair@aegee.org", "description": "The Chair team is responsible for preparing and moderating the Agorae. They preside over them, take the minutes and are responsible for the IT during the events.", @@ -52,7 +46,7 @@ "seo_url": 34, "phone": null, "name": "AEGEE-Alicante", - "legacy_key": "ALC", + "code": "ALC", "id": 34, "email": "junta@aegeealicante.org", "description": "Local in Alicante, see also http://www.aegeealicante.org/, https://www.facebook.com/AEGEEAlicante, https://twitter.com/AEGEEAlicante", @@ -191,7 +185,7 @@ "seo_url": 34, "phone": null, "name": "AEGEE-Alicante", - "legacy_key": "ALC", + "code": "ALC", "id": 34, "email": "junta@aegeealicante.org", "description": "Local in Alicante, see also http://www.aegeealicante.org/, https://www.facebook.com/AEGEEAlicante, https://twitter.com/AEGEEAlicante", @@ -217,7 +211,7 @@ "seo_url": 9, "phone": null, "name": "Chair Team of the Agora", - "legacy_key": "XCH", + "code": "XCH", "id": 9, "email": "chair@aegee.org", "description": "The Chair team is responsible for preparing and moderating the Agorae. They preside over them, take the minutes and are responsible for the IT during the events.", @@ -234,7 +228,7 @@ "seo_url": 34, "phone": null, "name": "AEGEE-Alicante", - "legacy_key": "ALC", + "code": "ALC", "id": 34, "email": "junta@aegeealicante.org", "description": "Local in Alicante, see also http://www.aegeealicante.org/, https://www.facebook.com/AEGEEAlicante, https://twitter.com/AEGEEAlicante", @@ -248,7 +242,7 @@ "seo_url": 9, "phone": null, "name": "Chair Team of the Agora", - "legacy_key": "XCH", + "code": "XCH", "id": 9, "email": "chair@aegee.org", "description": "The Chair team is responsible for preparing and moderating the Agorae. They preside over them, take the minutes and are responsible for the IT during the events.",