BHoM / BHoM_Adapter

GNU Lesser General Public License v3.0
7 stars 5 forks source link

Change Adapter oM and Engine namespaces to `Adapters` #213

Closed alelom closed 1 year ago

alelom commented 4 years ago

Description

See the general issue text below.

Action required

The repos that need attention are all Toolkits that include an Adapter project.

alelom commented 4 years ago

Description

We want the menu items for Engine and oM classes defined in Adapter-Based-Toolkits (= only Toolkits that contain an Adapter project) into a new category, Adapters.

This is mainly to tidy up the menu items, to avoid clutter, and leaving the base Engine methods and classes on the top level.

Currently we have this situation:

What we want is:

This means:

  1. Take note of all changes you will be doing at the following points.
  2. Add the Adapters name to the namespace of all your oM and Engine classes.
  3. This last point applies only for some Toolkits such as Lusas and Revit in the first picture above. Check if you have:
    • BH.oM.Adapter.something have to become BH.oM.Adapters.something (note the s);
    • BH.oM.External.something have to become BH.oM.Adapters.something.
    • BH.oM.Adapters.something do not change them.
    • BH.Engine.Adaper.something have to become BH.Engine.Adapters.something (note the s);
    • BH.Engine.External.something have to become BH.oM.Adapters.something.
    • BH.Engine.Adapers.something do not change them.

You must take note of what changes you've applied and list them in your PR.

E.g.

this will be used to inform the Versioning_Toolkit and make sure we get retro-compatibility for this change.

IMPORTANT NOTE

Note that the following usings:

using BH.oM.Adapter;
using BH.oM.Adapter.Commands;
using BH.Engine.Adapter;
using BH.Adapter.Modules.Structure

are not to be changed as they refer to the base Adapter namespace, which is not the subject of the current renaming.

alelom commented 4 years ago

After last chat with @al-fisher

We decided to bump this as a priority in 3.2

Reason is, to get best compromise between the benefit of the renaming and the actual amount of work, we thought it's best to properly change all existing Adapter-based-Toolkits.

I'm including updated instructions above. I've tried to be as clear as possible. Let me know what you think. @FraserGreenroyd @IsakNaslundBh

rwemay commented 4 years ago

Apart from the vote for BH.oM.Adapters (plural), I'm just going to throw one final curved ball in there - BH.oM.Adaptation.

IsakNaslundBh commented 4 years ago

My vote goes to BH.oM.Adapters

epignatelli commented 4 years ago

I also updated the wiki for the External class to specify what that is about: https://github.com/BHoM/documentation/wiki/BHoM_Engine-Classes/

My vote goes to Adaptation.

alelom commented 4 years ago

Everyone, thanks for the nice chat!

To recap:

We'd like everyone to express their preference between the 2 remaining proposals in this survey: https://www.surveymonkey.co.uk/r/BHGQYX3

Thanks!

pawelbaran commented 4 years ago

True democracy!

rwemay commented 4 years ago

:) I bottled it and went with my initial instinct of adapters plural. Looks like adapters wins?! Let’s reserve adaptation for truly chameleon like behaviours!

alelom commented 4 years ago

image Official results for the joy of democratation 😄

alelom commented 4 years ago

Updated issue title and instructions.

FraserGreenroyd commented 4 years ago

Can I confirm that this is now the absolute latest version that we're going with? Cause XML Toolkit has already changed to External and will now need updating again, and MidasCivil/Lusas have gone to External by @peterjamesnugent and will presumably also need updating - so would like to avoid making the change again if the decision is not concrete? Definitely BH.Engine.Adapters.Blah for anything we don't want exposed in UIs?

pawelbaran commented 4 years ago

Hitting up @FraserGreenroyd's query - happy to action but could we please confirm we all are aligned?

peterjamesnugent commented 4 years ago

@pawelbaran I've already made the changes on MidasCivil and Lusas.

pawelbaran commented 4 years ago

Changes to External or Adapters?

peterjamesnugent commented 4 years ago

Adapters

al-fisher commented 4 years ago

Yes - can confirm Adapters is agreed namespace following all discussions

@alelom

alelom commented 4 years ago

Yes it is Adapters.

alelom commented 1 year ago

Closing as completed.