Giter Site home page Giter Site logo

sitedb's People

Contributors

brunocoimbra avatar dtnrm avatar geneguvo avatar h4d4 avatar juztas avatar mapsacosta avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sitedb's Issues

intra-federation site pledges percentage split

Hi,
Jose asked and suggested this thing :
How can specify in siteDB that each site contributes with 50% of the resources of the federation?

Are we looking into in this type of feature, that makes easier for intra-federation operators, allowing to specify percentage split of federation pledges ?

Also need to think about use cases :
Then site is removed from federation
Then site is added to federation (fetched from rebus)
Allow it change per year, or per Site?

Documentation update

Update documentation about new API calls and add all examples how to get, delete, put data using curl

Deletion of site does not cleanup cms_name

Whenever a site is removed from sitedb, its CMS alias name does not get deleted from the cms_name table.

If we then try adding the site with the same cms_name, it will fail to register that alias for the site. In the end, you have a site without a CMS alias name.

So far, whenever someone removes a site, I have to do the following surgery cleanup:

select * from cms_name where id not in (select cms_name_id from site_cms_name_map);

    ID NAME
---------- ----------------------------------------------------------------------------------------------------
     3 T1_DE_FZK
       801 T2_CH_CAF
       113 T2_PT_LIP_Lisbon
       142 T3_DE_Karlsruhe
      1341 T3_IT_Padova
       923 TX_UN_Fake

6 rows selected.

delete from cms_name where id not in (select cms_name_id from site_cms_name_map);

The bug is very easy to reproduce: just add a new site under the dev instance, remove it, then try adding again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.