Giter VIP home page Giter VIP logo

bamboohrbot's People

Contributors

allcontributors[bot] avatar betisman avatar dependabot[bot] avatar inigomarquinez avatar totegsito avatar ulisesgascon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

totegsito

bamboohrbot's Issues

Change slack publishing method

We're using slack webhooks to publish to slack.

However, asl slack states:

Please note, this is a legacy custom integration - an outdated way for teams to integrate with Slack. These integrations lack newer features and they will be deprecated and possibly removed in the future. We do not recommend their use. Instead, we suggest that you check out their replacement: Slack apps.

So we should change how we publish to slack.

Empty let's celebrate message

When there are no celebrations, the Let's celebrate message is empty. It should either not be published or published with a banner saying that there are no celebrations.

Image

Take bank holidays into account

When publishing to slack, we only take into account the day of the week.

eg. if it's Monday, we publish the events for Tuesday. But we don't take into account if the day we're publishing the message or the day that the message refers to is bank holiday.

Split publisher method

The publisher method takes care of:

  • Mapping the information
  • Publishing to slack

For better testing and and consistency, we should split the logic in two different methods:

  • One that maps the information from bamboohr to slack messages
  • The other one that publishes to slack a specific payload

FEATURE: be able to define ephemeris

Detailed Description

As part of the celebration message, we should be able to provide a list of ephemeris, so they are shown along with birthdays and anniversaries.

e.g. 13th September - Programmers day

Possible Implementation

Set a new env variable or file to set date and comment for that date (similar to bamboohr for birthdays)

FEATURE: allow publishing the same event in several channels

Detailed Description

A user suggested in this slack thread that it would be interesting to have the possibility to publish the same event in several slack channels.

Context

This feature would be useful so for example, Bank Holidays can be published both in a Company internal channel for the employees and in a slack channel shared with clients, so they are automatically informed about the Company Bank Holidays.

Possible Implementation

Just support an array of webhooks in the env variables.

Add testing

Only a couple of methods have been tested yet.

The test suite should be improved and perhaps the coverage should also be included.

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.